[FFmpeg-devel] [PATCH v2] lavf: use the new bitstream filter for extracting extradata

James Almer jamrial at gmail.com
Thu Apr 6 00:22:32 EEST 2017


On 4/1/2017 9:03 PM, James Almer wrote:
> This merges commits 8e2ea691351c5079cdab245ff7bfa5c0f3e3bfe4 and
> 096a8effa3f8f3455292c958c3ed07e798def7bd by Anton Khirnov, with the
> following change:
> 
> - extract_extradata_check() is added to know if the codec is supported
> by the bsf before trying to initialize it. This behaviour is similar to
> the old AVCodecParser.split checks.
> 
> The FATE reference changes are due to the filtered out NAL units that
> the old AVCodecParser.split implementation left alone.
> Decoding is unchanged as the functions that parse extradata simply
> ignored said unnecessary NAL units.
> 
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
>  libavformat/internal.h                       |   9 ++
>  libavformat/utils.c                          | 146 ++++++++++++++++++++++++---
>  tests/ref/fate/copy-trac2211-avi             |   4 +-
>  tests/ref/fate/h264_mp4toannexb_ticket2991   |   2 +-
>  tests/ref/fate/h264_mp4toannexb_ticket5927   |   2 +-
>  tests/ref/fate/h264_mp4toannexb_ticket5927_2 |   2 +-
>  tests/ref/fate/segment-mp4-to-ts             |   2 +-
>  7 files changed, 148 insertions(+), 19 deletions(-)

I'll be pushing this soon.



More information about the ffmpeg-devel mailing list