changeset 8810:367e4d405cd9 libavcodec

Set AVSubtitle format to 0. Neither dvdsubdec nor xsubdec intializes format to 0, but ffplay checks it before displaying subtitles (ffplay.c:1437). patch by Bj«Órn Axelsson, gecko acc.umu se
author diego
date Thu, 12 Feb 2009 01:27:56 +0000
parents 425f99bb62df
children 464c36527303
files dvdsubdec.c xsubdec.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dvdsubdec.c	Thu Feb 12 01:07:13 2009 +0000
+++ b/dvdsubdec.c	Thu Feb 12 01:27:56 2009 +0000
@@ -175,6 +175,7 @@
         return -1;
     sub_header->rects = NULL;
     sub_header->num_rects = 0;
+    sub_header->format = 0;
     sub_header->start_display_time = 0;
     sub_header->end_display_time = 0;
 
--- a/xsubdec.c	Thu Feb 12 01:07:13 2009 +0000
+++ b/xsubdec.c	Thu Feb 12 01:27:56 2009 +0000
@@ -51,6 +51,8 @@
     int w, h, x, y, rlelen, i;
     GetBitContext gb;
 
+    sub->format = 0;
+
     // check that at least header fits
     if (buf_size < 27 + 7 * 2 + 4 * 3) {
         av_log(avctx, AV_LOG_ERROR, "coded frame too small\n");