Commit f72601d0 authored by Michael Niedermayer's avatar Michael Niedermayer

txddemux: Limit allocated packets to filesize.

Fixes Ticket772
Bug found by: Diana Elena Muscalu
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a0009754
...@@ -48,6 +48,9 @@ static int txd_read_header(AVFormatContext *s, AVFormatParameters *ap) { ...@@ -48,6 +48,9 @@ static int txd_read_header(AVFormatContext *s, AVFormatParameters *ap) {
st->codec->time_base.den = 5; st->codec->time_base.den = 5;
st->codec->time_base.num = 1; st->codec->time_base.num = 1;
/* the parameters will be extracted from the compressed bitstream */ /* the parameters will be extracted from the compressed bitstream */
s->pb->maxsize= avio_size(s->pb);
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment