[FFmpeg-cvslog] txddemux: Limit allocated packets to filesize.

Michael Niedermayer git at videolan.org
Fri Dec 16 06:25:16 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Dec 16 06:02:56 2011 +0100| [f72601d06378494b5026b919fcd3eb5eb22799a1] | committer: Michael Niedermayer

txddemux: Limit allocated packets to filesize.
Fixes Ticket772
Bug found by: Diana Elena Muscalu

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f72601d06378494b5026b919fcd3eb5eb22799a1
---

 libavformat/txd.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/libavformat/txd.c b/libavformat/txd.c
index 5d9f969..284d532 100644
--- a/libavformat/txd.c
+++ b/libavformat/txd.c
@@ -48,6 +48,9 @@ static int txd_read_header(AVFormatContext *s, AVFormatParameters *ap) {
     st->codec->time_base.den = 5;
     st->codec->time_base.num = 1;
     /* the parameters will be extracted from the compressed bitstream */
+
+    s->pb->maxsize= avio_size(s->pb);
+
     return 0;
 }
 



More information about the ffmpeg-cvslog mailing list