OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a000975
)
txddemux: Limit allocated packets to filesize.
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 16 Dec 2011 05:02:56 +0000
(06:02 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 16 Dec 2011 05:02:56 +0000
(06:02 +0100)
Fixes Ticket772
Bug found by: Diana Elena Muscalu
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/txd.c
patch
|
blob
|
history
diff --git
a/libavformat/txd.c
b/libavformat/txd.c
index
5d9f969
..
284d532
100644
(file)
--- 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;
}