Commit 33cf70a8 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '8d928023'

* commit '8d928023':
  smacker: Don't return packets in unallocated streams
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 7e88dbe9 8d928023
......@@ -348,6 +348,8 @@ static int smacker_read_packet(AVFormatContext *s, AVPacket *pkt)
smk->cur_frame++;
smk->nextpos = avio_tell(s->pb);
} else {
if (smk->stream_id[smk->curstream] < 0)
return AVERROR_INVALIDDATA;
if (av_new_packet(pkt, smk->buf_sizes[smk->curstream]))
return AVERROR(ENOMEM);
memcpy(pkt->data, smk->bufs[smk->curstream], smk->buf_sizes[smk->curstream]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment