• Marton Balint's avatar
    lavf: add av_guess_frame_sample_aspect_ratio function · 94a9ac12
    Marton Balint authored
    Guesses the sample aspect ratio of a frame, based on both the stream and the
    frame aspect ratio.
    
    Since the frame aspect ratio is set by the codec but the stream aspect ratio
    is set by the demuxer, these two may not be equal. This function tries to
    return the value that you should use if you would like to display the frame.
    
    Basic logic is to use the stream aspect ratio if it is set to something sane
    otherwise use the frame aspect ratio. This way a container setting, which is
    usually easy to modify can override the coded value in the frames.
    Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
    Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
    94a9ac12
Name
Last commit
Last update
..
doxy Loading commit data...
examples Loading commit data...
APIchanges Loading commit data...
Makefile Loading commit data...
RELEASE_NOTES Loading commit data...
avtools-common-opts.texi Loading commit data...
avutil.txt Loading commit data...
bitstream_filters.texi Loading commit data...
build_system.txt Loading commit data...
decoders.texi Loading commit data...
demuxers.texi Loading commit data...
developer.texi Loading commit data...
encoders.texi Loading commit data...
errno.txt Loading commit data...
eval.texi Loading commit data...
faq.texi Loading commit data...
fate.texi Loading commit data...
ffmpeg-mt-authorship.txt Loading commit data...
ffmpeg.texi Loading commit data...
ffmpeg.txt Loading commit data...
ffplay.texi Loading commit data...
ffprobe.texi Loading commit data...
ffprobe.xsd Loading commit data...
ffserver.conf Loading commit data...
ffserver.texi Loading commit data...
filter_design.txt Loading commit data...
filters.texi Loading commit data...
general.texi Loading commit data...
git-howto.texi Loading commit data...
git-howto.txt Loading commit data...
indevs.texi Loading commit data...
issue_tracker.txt Loading commit data...
libavfilter.texi Loading commit data...
metadata.texi Loading commit data...
multithreading.txt Loading commit data...
muxers.texi Loading commit data...
optimization.txt Loading commit data...
outdevs.texi Loading commit data...
platform.texi Loading commit data...
print_options.c Loading commit data...
protocols.texi Loading commit data...
rate_distortion.txt Loading commit data...
snow.txt Loading commit data...
soc.txt Loading commit data...
swresample.txt Loading commit data...
swscale.txt Loading commit data...
t2h.init Loading commit data...
tablegen.txt Loading commit data...
texi2pod.pl Loading commit data...
viterbi.txt Loading commit data...