[FFmpeg-devel] libavcodec/qsvdec_h264.c: SPS parsing now performs by MFXVideoDECODE_DecodeHeader() into libavcodec/qsvdec.c

Hendrik Leppkes h.leppkes at gmail.com
Thu Jul 16 22:57:25 CEST 2015

On Thu, Jul 16, 2015 at 10:02 PM, Ivan Uskov <ivan.uskov at nablet.com> wrote:
> Hello All,
> Current implementation of libavcodec/qsvdec_h264.c does use external
> SPS parser. It does not optimal since MFX library has own unified way
> to parse headers of all supported formats. This performs by one
> MFXVideoDECODE_DecodeHeader() call.
> The suggested patch does replace stream specific code to one universal
> function call located into the libavcodec/qsvdec.c. This opens an easy
> way to implement qsv-accelerated mpeg2, hevc and vc1 decoders.
> Please review.

There was a specific reason this was done this way.
You should definitely inquire with the original author of this code
for the reason of not using the header parser, IIRC it was broken in
some cases.

- Hendrik

More information about the ffmpeg-devel mailing list