Hi,


I have a slight problem using the av_seek_frame function.

I have a mpeg file here which looks fine while decoding from the

beginning. Skipping of the video stream is working fine, but if i try to

skip the audio stream the next call to avcodec_decode_audio3 returns -1

and

the errorcallback is giving me "Header missing".

I think "ff_mpa_check_header" in mpegaudio.h is failing and giving me this

return value. Am I anything missing while skipping?



I am calling the ffmpeg functions in the folowing order:



1. stream is open and giving me audio samples

2. av_seek_frame -> successful

3. avcodec_flush_buffers on the audio stream

4. av_read_frame -> got a new packet from the audio stream

5. avcodec_decode_audio3 -> this call now fails every time



Any suggestions?



-- 

Best Regards

Hendrik


_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to