mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
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 0c97fd336e17535239ab44d755a0d957dc2688f3)
This commit is contained in:
parent
96c6b3a11c
commit
123e925956
@ -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…
x
Reference in New Issue
Block a user