lavc: Add h264_redundant_pps bitstream filter

Multimedia / FFmpeg - Mark Thompson [jkqxz.net] - 17 October 2017 15:56 EDT

This applies a specific fixup to some Blu-ray streams which contain redundant PPSs modifying irrelevant parameters of the stream which confuse other transformations which require correct extradata.

A new single global PPS is created, and all of the redundant PPSs within the stream are removed.

(cherry picked from commit e6874bc3af2f09af39b5d91b9c5f9ded67459696)

8b26306 lavc: Add h264_redundant_pps bitstream filter
configure | 1 +
doc/bitstream_filters.texi | 9 ++
libavcodec/Makefile | 1 +
libavcodec/bitstream_filters.c | 1 +
libavcodec/h264_redundant_pps_bsf.c | 178 ++++++++++++++++++++++++++++++++++++
5 files changed, 190 insertions(+)

  • Share