Re: [FFmpeg-devel] [PATCH] Fix for H.264 configuration parsing

2016-04-16 Thread Michael Niedermayer
On Tue, Apr 12, 2016 at 04:32:04PM -0400, Ivan wrote: > Sometimes video fails to decode if H.264 configuration changes mid stream. > The reason is that configuration parser assumes that nal_ref_idc is equal to > 11b while actually some codecs but 01b there. The H.264 spec is somewhat > vague abo

Re: [FFmpeg-devel] [PATCH] Fix for H.264 configuration parsing

2016-04-13 Thread Ivan Grigoriev
On Tue, Apr 12, 2016 at 11:47 PM, Carl Eugen Hoyos wrote: > > Could you provide such a stream? > > This is a stream I encoded using Android MediaCodec API and it breaks when I switch resolution. I have another stream that was encoded with a different encoder and there the transition works perfec

Re: [FFmpeg-devel] [PATCH] Fix for H.264 configuration parsing

2016-04-12 Thread Carl Eugen Hoyos
Ivan gmail.com> writes: > Sometimes video fails to decode if H.264 configuration > changes mid stream. Could you provide such a stream? Carl Eugen ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

[FFmpeg-devel] [PATCH] Fix for H.264 configuration parsing

2016-04-12 Thread Ivan
Sometimes video fails to decode if H.264 configuration changes mid stream. The reason is that configuration parser assumes that nal_ref_idc is equal to 11b while actually some codecs but 01b there. The H.264 spec is somewhat vague about this but it looks like it allows any non-zero nal_ref_idc f