[FFmpeg-devel] [PATCH] avcodec/extract_extradata_bsf: make sure parameter set NAL units were found for h264/hevc

James Almer jamrial at gmail.com
Sun Apr 2 02:01:27 EEST 2017


On 3/24/2017 11:13 PM, James Almer wrote:
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
> This is an actual fix for the existing parsing code instead of a copy
> of the AVCodecParser code, as an alternative to patches 2 and 3 of this
> set.
> 
> Five FATE tests will have to be updated with patch 6 if this is applied,
> as this parsing code filters unnecessary NAL units and that's reflected
> in the extradata size and checksum output of framecrc during codec copy.
> They are:
> 
> fate-copy-trac2211-avi
> fate-h264_mp4toannexb_ticket2991
> fate-h264_mp4toannexb_ticket5927
> fate-h264_mp4toannexb_ticket5927_2
> fate-segment-mp4-to-ts
> 
>  libavcodec/extract_extradata_bsf.c | 15 ++++++++++++---
>  1 file changed, 12 insertions(+), 3 deletions(-)

Pushed this version.

Only patch 6/6 (The one that enables this functionality) remains. I'll
send a new version with the above fate changes applied.



More information about the ffmpeg-devel mailing list