rmdec: check av_new_packet return value
CC: libav-stable@libav.org Bug-Id: CID 733714
This commit is contained in:
parent
629b2ed0ac
commit
7207dd8f82
@ -816,7 +816,9 @@ ff_rm_retrieve_cache (AVFormatContext *s, AVIOContext *pb,
|
||||
ast->deint_id == DEINT_ID_VBRS)
|
||||
av_get_packet(pb, pkt, ast->sub_packet_lengths[ast->sub_packet_cnt - rm->audio_pkt_cnt]);
|
||||
else {
|
||||
av_new_packet(pkt, st->codec->block_align);
|
||||
int ret = av_new_packet(pkt, st->codec->block_align);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
memcpy(pkt->data, ast->pkt.data + st->codec->block_align * //FIXME avoid this
|
||||
(ast->sub_packet_h * ast->audio_framesize / st->codec->block_align - rm->audio_pkt_cnt),
|
||||
st->codec->block_align);
|
||||
|
Loading…
x
Reference in New Issue
Block a user