aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-16 06:02:56 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-12-16 06:02:56 +0100
commitf72601d06378494b5026b919fcd3eb5eb22799a1 (patch)
treea295f7ab88c3f9c0d928b31fa748407f04799739 /libavformat
parenta0009754442b339dd6f07f8fe4f803f272866912 (diff)
downloadffmpeg-f72601d06378494b5026b919fcd3eb5eb22799a1.tar.gz
txddemux: Limit allocated packets to filesize.
Fixes Ticket772 Bug found by: Diana Elena Muscalu Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/txd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/txd.c b/libavformat/txd.c
index 5d9f969270..284d53212f 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;
}