summaryrefslogtreecommitdiff
path: root/libavcodec/qdrw.c
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2015-02-08 12:38:06 +0100
committerClément Bœsch <u@pkh.me>2015-05-14 12:11:34 +0200
commit5c219e289e7f3a7e369f692053bd0c1d35937a33 (patch)
tree2db3235c1a13db45fa73d2b8ec560eedf3ed2814 /libavcodec/qdrw.c
parent56bc0a6736cdc7edab837ff8f304661fd16de0e4 (diff)
avcodec/srtdec: attempt to correct SubRip positioning
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.
Diffstat (limited to 'libavcodec/qdrw.c')
0 files changed, 0 insertions, 0 deletions