Browse Source

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>
(cherry picked from commit 0c97fd336e)
tags/n0.5.9
Michael Niedermayer 14 years ago
parent
commit
123e925956
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      libavformat/mm.c

+ 0
- 1
libavformat/mm.c View File

@@ -162,7 +162,6 @@ static int mm_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;


Loading…
Cancel
Save