[FFmpeg-devel] [PATCH] libavcodec/qsvdec_h264.c bug fixed: decoder fails after restart on non-annex-b content.

Ivan Uskov ivan.uskov at nablet.com
Fri Jul 24 13:34:04 CEST 2015

Hello All,

The current implementation of libavcodec/qsvdec_h264.c does not store
original extradata buffer. At the same time the
\libavcodec\h264_mp4toannexb_bsf filter does modify extradata buffer
inplace and fails to process it next time if decoder reinitializes.
So it is not possible to decode mp4 or mkv container using ffmpeg
command line with h264_qsv decoder.
The attached patch solves this issue. The corresponded code was taken
from \libavcodec\crystalhd.c which also uses the h264_mp4toannexb_bsf

Best regards,
 Ivan                          mailto:ivan.uskov at nablet.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libavcodec-qsvdec_h264.c-bug-fixed-decoder-fails-aft.patch
Type: application/octet-stream
Size: 2031 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150724/693f3427/attachment.obj>

More information about the ffmpeg-devel mailing list