aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/xsubdec.c
diff options
context:
space:
mode:
authorBjörn Axelsson <gecko@acc.umu.se>2009-02-12 01:27:56 +0000
committerDiego Biurrun <diego@biurrun.de>2009-02-12 01:27:56 +0000
commit37a43cfb3921a0b80157ea658d408bd08ab68306 (patch)
tree1de852f1059ffe464cb4ad0536fce60036b19505 /libavcodec/xsubdec.c
parent508048afe2970529903378a10f276bae5d4422e0 (diff)
downloadffmpeg-37a43cfb3921a0b80157ea658d408bd08ab68306.tar.gz
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 Originally committed as revision 17170 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/xsubdec.c')
-rw-r--r--libavcodec/xsubdec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/xsubdec.c b/libavcodec/xsubdec.c
index 0274705fb2..35b00a54b4 100644
--- a/libavcodec/xsubdec.c
+++ b/libavcodec/xsubdec.c
@@ -51,6 +51,8 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
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");