avcodec/ass: explicit PlayRes[XY]
authorClément Bœsch <u@pkh.me>
Wed, 18 Jun 2014 16:12:11 +0000 (18:12 +0200)
committerClément Bœsch <clement@stupeflix.com>
Wed, 18 Jun 2014 16:22:40 +0000 (18:22 +0200)
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.

17 files changed:
libavcodec/ass.c
tests/ref/fate/sub-aqtitle
tests/ref/fate/sub-charenc
tests/ref/fate/sub-jacosub
tests/ref/fate/sub-microdvd
tests/ref/fate/sub-movtext
tests/ref/fate/sub-mpl2
tests/ref/fate/sub-mpsub
tests/ref/fate/sub-mpsub-frames
tests/ref/fate/sub-pjs
tests/ref/fate/sub-realtext
tests/ref/fate/sub-sami
tests/ref/fate/sub-srt
tests/ref/fate/sub-subviewer
tests/ref/fate/sub-subviewer1
tests/ref/fate/sub-vplayer
tests/ref/fate/sub-webvtt

index ccc9570..4edff84 100644 (file)
@@ -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"
index c477b0a..0d04c9d 100644 (file)
@@ -1 +1 @@
-1c68def68db6536c235819cbe0638e00
+2603c926b8b235032762ef2ae47a7779
index ef72754..a5a54e9 100644 (file)
@@ -1 +1 @@
-9615088d613931b50fd5016c7535b99a
+6ae00c6970e873d82ef5d06d40e144fe
index b65aee2..9802484 100644 (file)
@@ -1 +1 @@
-4e8f2d1d4130251163432d2a448680be
+5547b430172107fc242385e9c639fa93
index 2059989..1dff1a5 100644 (file)
@@ -1 +1 @@
-35e133576aa3881d2de8dbf39a8d6df7
+c150177fc8bb928b51de3533fd105225
index d91c243..5409dec 100644 (file)
@@ -1 +1 @@
-21453e8ddbbe35d1368a99fe563c969d
+ac8c13bac8e0e43c84eaa525680964f0
index 8835dd2..37a9391 100644 (file)
@@ -1 +1 @@
-3c2fb62002aec3af16d83135a0e3b0fc
+4a7699ff366788a4af6243ab28d2f9ff
index 4e36648..b0f5db5 100644 (file)
@@ -1 +1 @@
-2c5fafec41479e1d09a32f85e8927d03
+7d047bdf176d4477c8713e89be5dec8e
index d5bb44e..4a336c4 100644 (file)
@@ -1 +1 @@
-cbe6e45848ef77e3080487a88b122104
+ae1dce6321a0eb1bc406ca8660350023
index 8b382e7..9457271 100644 (file)
@@ -1 +1 @@
-d044f6ffdee48e48efff072b33baee0a
+1e188b18693844b3a30e91a650f68e1b
index 42ac3bb..079a664 100644 (file)
@@ -1 +1 @@
-5366f62be001f6fd4a7f48893828bf51
+77103e00504d1e1b3302a990a646ae38
index 308e000..0d72ca0 100644 (file)
@@ -1 +1 @@
-00642e143339b4ca29dc6e990436387c
+4577f9c289440558026dc426584a06d8
index ba5e50a..66ba339 100644 (file)
@@ -1 +1 @@
-a246a00ed72655cb8db3eaf64a522e0d
+5315582436b3381996dca4a767a080a0
index abae1f7..c7e4628 100644 (file)
@@ -1 +1 @@
-aef995d49af4517b40589b72cfa918f7
+0954f324e9c8137d7f50fc705199e9a4
index 052431a..c617537 100644 (file)
@@ -1 +1 @@
-cbeb015b1125757eed814f212cfc6c9c
+89aa422b7a6cd4dc9beef1b5a67d4aab
index b8fc40e..8077d5b 100644 (file)
@@ -1 +1 @@
-c8201c542f43a9ea42a787ac74d28049
+d8405387687269f7d763fc324c7c01bb
index 45cccde..dc1bef6 100644 (file)
@@ -1 +1 @@
-2cf38e2c99f8717f78a91a3f31197fb4
+6b915f0a00ab04649f6ce769da0af916