• Clément Bœsch's avatar
    ffmpeg: switch to the new BSF API · 5ef19590
    Clément Bœsch authored
    This commit is initially largely based on commit 4426540f from Anton
    Khirnov <anton@khirnov.net> and two following fixes (80fb19bc and
    fe7b21c8) which were previously skipped respectively in 98e3153f, c9ee36e6,
    and 7fe7cdca.
    
    mpeg4-bsf-unpack-bframes FATE reference is updated because the bsf
    filter now actually fixes the extradata (mpeg4_unpack_bframes_init()
    changing one byte is now honored on the output extradata).
    
    The FATE references for remove_extra change because the packet flags
    were wrong and the keyframes weren't marked, causing the bsf relying on
    these proprieties to not actually work as intended.
    
    The following was fixed by James Almer:
    
    The filter option arguments are now also parsed correctly.
    
    A hack to propagate extradata changed by bitstream filters after the
    first av_bsf_receive_packet() call is added to maintain the current
    behavior. This was previously done by av_bitstream_filter_filter() and
    is needed for the aac_adtstoasc bsf.
    
    The exit_on_error was not being checked anymore, and led to an exit
    error in the last frame of h264_mp4toannexb test. Restoring this
    behaviour prevents erroring out. The test is still changed as a result
    due to the badly filtered frame now not being written after the failure.
    Signed-off-by: 's avatarClément Bœsch <u@pkh.me>
    Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
    5ef19590
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
arch.mak Loading commit data...
cmdutils.c Loading commit data...
cmdutils.h Loading commit data...
cmdutils_common_opts.h Loading commit data...
cmdutils_opencl.c Loading commit data...
common.mak Loading commit data...
configure Loading commit data...
ffmpeg.c Loading commit data...
ffmpeg.h Loading commit data...
ffmpeg_cuvid.c Loading commit data...
ffmpeg_dxva2.c Loading commit data...
ffmpeg_filter.c Loading commit data...
ffmpeg_opt.c Loading commit data...
ffmpeg_qsv.c Loading commit data...
ffmpeg_vaapi.c Loading commit data...
ffmpeg_vdpau.c Loading commit data...
ffmpeg_videotoolbox.c Loading commit data...
ffplay.c Loading commit data...
ffprobe.c Loading commit data...
ffserver.c Loading commit data...
ffserver_config.c Loading commit data...
ffserver_config.h Loading commit data...
library.mak Loading commit data...
version.sh Loading commit data...