summaryrefslogtreecommitdiff
path: root/libavcodec/ass.c
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2014-06-18 18:12:11 +0200
committerClément Bœsch <clement@stupeflix.com>2014-06-18 18:22:40 +0200
commit5039aadf68deb9ad6dd0737ea11259fe53d3727b (patch)
treedd95ad8727ac06d9ad41a19959a701fa640e2575 /libavcodec/ass.c
parent2d70282254834b276ab5eea44dba694f98551c79 (diff)
avcodec/ass: explicit PlayRes[XY]
This avoids the following libass warning when using the subtitles filter: "Neither PlayResX nor PlayResY defined. Assuming 384x288" Subtitles tests change because the output is ASS and the PlayRes[XY] ends up in the output.
Diffstat (limited to 'libavcodec/ass.c')
-rw-r--r--libavcodec/ass.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/ass.c b/libavcodec/ass.c
index ccc9570650..4edff84933 100644
--- a/libavcodec/ass.c
+++ b/libavcodec/ass.c
@@ -34,6 +34,8 @@ int ff_ass_subtitle_header(AVCodecContext *avctx,
{
avctx->subtitle_header = av_asprintf(
"[Script Info]\r\n"
+ "PlayResX: 384\r\n"
+ "PlayResY: 288\r\n"
"ScriptType: v4.00+\r\n"
"\r\n"
"[V4+ Styles]\r\n"