I found an interesting thread:
http://libav-users.943685.n4.nabble.com/Decode-H264-streams-how-to-fill-AVCodecContext-from-SPS-PPS-td2484472.html

tl;nr: you cannot decode the SPS and PPS Nal units not as separate
packets, but together with an IDR packet.

Also, I seem to have been worng: I you should send the 00000001
annex-b headers to avcodec_decode_video2().

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

Reply via email to