[FFmpeg-devel] [PATCH 3/6] dvbsubdec: always return the whole buffer as consumed bytes
Marton Balint
cus at passwd.hu
Sat Oct 5 19:34:55 CEST 2013
We don't want leftover junk bytes to be accidentally feeded to us again.
Signed-off-by: Marton Balint <cus at passwd.hu>
---
libavcodec/dvbsubdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c
index 4ce40aa..33deb67 100644
--- a/libavcodec/dvbsubdec.c
+++ b/libavcodec/dvbsubdec.c
@@ -1538,7 +1538,7 @@ static int dvbsub_decode(AVCodecContext *avctx,
if (got_segment == 15 && sub)
*data_size = dvbsub_display_end_segment(avctx, p, 0, sub);
- return p - buf;
+ return buf_size;
}
--
1.8.1.4
More information about the ffmpeg-devel
mailing list