• Anton Khirnov's avatar
    ffmpeg: init filtergraphs only after we have a frame on each input · af1761f7
    Anton Khirnov authored
    This makes sure the actual stream parameters are used, which is
    important mainly for hardware decoding+filtering cases, which would
    previously require various weird workarounds to handle the fact that a
    fake software graph has to be constructed, but never used.
    This should also improve behaviour in rare cases where
    avformat_find_stream_info() does not provide accurate information.
    
    This merges Libav commit a3a0230a. It was previously skipped.
    
    The code in flush_encoders() which sets up a "fake" format wasn't in
    Libav. I'm not sure if it's a good idea, but it tends to give
    behavior closer to the old one in certain corner cases.
    
    The vp8-size-change gives different result, because now the size of
    the first frame is used. libavformat reported the size of the largest
    frame for some reason.
    
    The exr tests now use the sample aspect ratio of the first frame. For
    some reason libavformat determines 0/1 as aspect ratio, while the
    decoder returns the correct one.
    
    The ffm and mxf tests change the field_order values. I'm assuming
    another libavformat/decoding mismatch.
    Signed-off-by: 's avatarwm4 <nfxjfg@googlemail.com>
    af1761f7
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...