i am working on audio video decoding but i am getting this "Header missing"
error for mpegaudio after seeking
i am seeking thru video stream (the same AVFormatContext has also 1 or more
mpegaudio audio streams)

                qsr=av_seek_frame(_pFormatCtx, stream_index, seek_target,
AVSEEK_FLAG_ANY);
after seeking i read packets and demux according to stream indexes(using
multithreading) and pass it to respective decoder
                len1 = avcodec_decode_audio3(audio_st->codec,
(int16_t*)_pAudioBufs[idxStream], &DecodedSize, packet); 

this time i get "header missing" erroe...while debugging/logging i saw that
after seek my av_read_frame returns me a packet with the packet size which
doesn't match with the ones before or after that one...e.g normally i'll
have audio packets with 1152 then after seek it would be something like 2139
or something. so i thought maybe this is the reason why i am having error
while decoding...but i need help with this am i doing something wrong while
seeking or after it???
-- 
View this message in context: 
http://libav-users.943685.n4.nabble.com/av-read-frame-after-seek-issue-packet-size-incorrect-tp2286165p2286165.html
Sent from the libav-users mailing list archive at Nabble.com.
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to