mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
Merge commit '1b5d065ca722eb8028c7a08e054b6da3419faf5d'
* commit '1b5d065ca722eb8028c7a08e054b6da3419faf5d':
pmpdec: check that there is at least one audio packet.
Conflicts:
libavformat/pmpdec.c
See: 8b1cd25ca7
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
4a055f91be
@ -138,10 +138,12 @@ static int pmp_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
if (pmp->cur_stream == 0) {
|
||||
int num_packets;
|
||||
pmp->audio_packets = avio_r8(pb);
|
||||
|
||||
if (!pmp->audio_packets) {
|
||||
avpriv_request_sample(s, "0 audio packets");
|
||||
return AVERROR_PATCHWELCOME;
|
||||
av_log(s, AV_LOG_ERROR, "No audio packets.\n");
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
|
||||
num_packets = (pmp->num_streams - 1) * pmp->audio_packets + 1;
|
||||
avio_skip(pb, 8);
|
||||
pmp->current_packet = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user