X-Git-Url: http://git.ffmpeg.org/gitweb/ffmpeg.git/blobdiff_plain/508048afe2970529903378a10f276bae5d4422e0..37a43cfb3921a0b80157ea658d408bd08ab68306:/libavcodec/xsubdec.c?ds=sidebyside 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");