Browse Source

txddemux: Limit allocated packets to filesize.

Fixes Ticket772
Bug found by: Diana Elena Muscalu

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit f72601d063)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.9.1
Michael Niedermayer 14 years ago
parent
commit
cd5d5bf45c
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavformat/txd.c

+ 3
- 0
libavformat/txd.c View File

@@ -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;
}



Loading…
Cancel
Save