Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-23 03:49:00 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-03-23 03:50:49 +0400
commit0c97fd336e17535239ab44d755a0d957dc2688f3 (patch)
treecbe55396b70307702be651edda38f4c07f5321d3 /libavformat/mm.c
parent7c0748c2db015cf2bf2c4a32a43bd1d2697afc1e (diff)
mmdemux: dont set pkt->size to an invalid value.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mm.c')
-rw-r--r--libavformat/mm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/mm.c b/libavformat/mm.c
index 91d22d09d8..d7308b9a90 100644
--- a/libavformat/mm.c
+++ b/libavformat/mm.c
@@ -174,7 +174,6 @@ static int read_packet(AVFormatContext *s,
case MM_TYPE_AUDIO :
if (av_get_packet(s->pb, pkt, length)<0)
return AVERROR(ENOMEM);
- pkt->size = length;
pkt->stream_index = 1;
pkt->pts = mm->audio_pts++;
return 0;