projects
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Set AVSubtitle format to 0. Neither dvdsubdec nor xsubdec intializes format
[ffmpeg.git]
/
libavcodec
/
xsubdec.c
diff --git
a/libavcodec/xsubdec.c
b/libavcodec/xsubdec.c
index
0274705
..
35b00a5
100644
(file)
--- 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");