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

Michael Niedermayer michael at niedermayer.cc
Sun Apr 17 02:21:30 CEST 2016


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 about this but it looks like it allows any non-zero nal_ref_idc for sps/pps.
> 
> Signed-off-by: Ivan <grigoriev.ivan.a at gmail.com>
> ---
>  libavcodec/h264.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

applied

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Rewriting code that is poorly written but fully understood is good.
Rewriting code that one doesnt understand is a sign that one is less smart
then the original author, trying to rewrite it will not make it better.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160417/b1e05094/attachment.sig>


More information about the ffmpeg-devel mailing list