• 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
..
aiff Loading commit data...
alaw Loading commit data...
apng Loading commit data...
asf Loading commit data...
ast Loading commit data...
au Loading commit data...
avi Loading commit data...
bmp Loading commit data...
caf Loading commit data...
dpx Loading commit data...
dv_fmt Loading commit data...
ffm Loading commit data...
flm Loading commit data...
flv_fmt Loading commit data...
gif Loading commit data...
gxf Loading commit data...
ircam Loading commit data...
ismv Loading commit data...
jpg Loading commit data...
mka Loading commit data...
mkv Loading commit data...
mmf Loading commit data...
mov Loading commit data...
mpg Loading commit data...
mulaw Loading commit data...
mxf Loading commit data...
mxf_d10 Loading commit data...
mxf_opatom Loading commit data...
mxf_opatom_audio Loading commit data...
nut Loading commit data...
ogg Loading commit data...
pam Loading commit data...
pbmpipe Loading commit data...
pcx Loading commit data...
pgm Loading commit data...
pgmpipe Loading commit data...
pixfmt Loading commit data...
png Loading commit data...
ppm Loading commit data...
ppmpipe Loading commit data...
rm Loading commit data...
rso Loading commit data...
sgi Loading commit data...
smjpeg Loading commit data...
sox Loading commit data...
sunrast Loading commit data...
swf Loading commit data...
tga Loading commit data...
tiff Loading commit data...
ts Loading commit data...
tta Loading commit data...
voc Loading commit data...
voc_s16 Loading commit data...
w64 Loading commit data...
wav Loading commit data...
wav_peak Loading commit data...
wav_peak_only Loading commit data...
wtv Loading commit data...
wv Loading commit data...
xbm Loading commit data...
xwd Loading commit data...
yuv4mpeg Loading commit data...