• Jerome Martinez's avatar
    avformat/mxfenc: fix stored/sampled/displayed width/height · 174ca11d
    Jerome Martinez authored
    According to MXF specs the Stored Rectangle corresponds to the data which is
    passed to the compressor and received from the decompressor, so they should
    contain the width / height extended to the macroblock boundary.
    
    In practice however width and height values rounded to the upper 16 multiples
    are only seen when muxing MPEG formats. Therefore this patch changes stored
    width and height values to unrounded for all non-MPEG formats, even macroblock
    based ones.
    
    For DNXHD the specs (ST 2019-4) explicitly indicates to use 1080 for 1088p.
    For ProRes the specs (RDD 44) only refer to to ST 377-1 without precision but
    no known commercial implementations are using rounded values.
    DV is not using 16x16 macroblocks, so 16 rounding makes no sense.
    
    The patch also fixes Sampled Width / Display Width to use unrounded values.
    Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
    174ca11d
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat 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...
.mailmap 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...
configure Loading commit data...