I am trying to seek into an mxf file and am not having any success. I know that 
my timebase numerator is 1001 and my duration is 10808.I should be able to seek 
to frame 5 with the following:

        int frame = 5;

    int flgs = AVSEEK_FLAG_ANY;
    int seek_ts = frame * vStream->time_base.num;
    if(av_seek_frame(pFormatCtx, videoStream, seek_ts, flgs) < 0){
        status = K_SEEK_FAILED;
        return;
    }

When the code begins to seek, it returns a value less than 0 and usually takes 
a long time. Can anyone see what I am doing wrong?

Thanks,

Patrick
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to