• Clément Bœsch's avatar
    avcodec/srtdec: attempt to correct SubRip positioning · 5c219e28
    Clément Bœsch authored
    The positioning was completely wrong. First, the coordinates are
    expressed in ASS playback resolution (which is by default 384x288).
    Secondly, the coordinates define a drawing rectangle, not a moving area.
    The previous code was making subtitles move from a random position to
    another random position.
    
    Here we rescale assuming the video resolution is a DVD one (720x480). We
    can't really do anything better so far, but since this positioning
    information is often from a DVD rip we can consider them relatively
    safe.
    5c219e28
Name
Last commit
Last update
..
fate Loading commit data...
filtergraphs Loading commit data...
ref Loading commit data...
Makefile Loading commit data...
audiogen.c Loading commit data...
base64.c Loading commit data...
copycooker.sh Loading commit data...
fate-run.sh Loading commit data...
fate-valgrind.supp Loading commit data...
fate.sh Loading commit data...
ffserver-regression.sh Loading commit data...
ffserver.conf Loading commit data...
ffserver.regression.ref Loading commit data...
lavf-regression.sh Loading commit data...
md5.sh Loading commit data...
reference.pnm Loading commit data...
regression-funcs.sh Loading commit data...
rotozoom.c Loading commit data...
test.ffmeta Loading commit data...
tiny_psnr.c Loading commit data...
tiny_ssim.c Loading commit data...
utils.c Loading commit data...
videogen.c Loading commit data...