Mercurial > libavcodec.hg
diff xsubdec.c @ 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 | 6fc3497dc81f |
children | 54bc8a2727b0 |
line wrap: on
line diff
--- 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");