mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
Merge commit '7207dd8f829baee58b4df6c97c19ffde77039e8d'
* commit '7207dd8f829baee58b4df6c97c19ffde77039e8d':
rmdec: check av_new_packet return value
Conflicts:
libavformat/rmdec.c
See: c01a462cda
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
840bc8e284
@ -918,8 +918,9 @@ ff_rm_retrieve_cache (AVFormatContext *s, AVIOContext *pb,
|
|||||||
ast->deint_id == DEINT_ID_VBRS)
|
ast->deint_id == DEINT_ID_VBRS)
|
||||||
av_get_packet(pb, pkt, ast->sub_packet_lengths[ast->sub_packet_cnt - rm->audio_pkt_cnt]);
|
av_get_packet(pb, pkt, ast->sub_packet_lengths[ast->sub_packet_cnt - rm->audio_pkt_cnt]);
|
||||||
else {
|
else {
|
||||||
if(av_new_packet(pkt, st->codec->block_align) < 0)
|
int ret = av_new_packet(pkt, st->codec->block_align);
|
||||||
return AVERROR(ENOMEM);
|
if (ret < 0)
|
||||||
|
return ret;
|
||||||
memcpy(pkt->data, ast->pkt.data + st->codec->block_align * //FIXME avoid this
|
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),
|
(ast->sub_packet_h * ast->audio_framesize / st->codec->block_align - rm->audio_pkt_cnt),
|
||||||
st->codec->block_align);
|
st->codec->block_align);
|
||||||
|
Loading…
Reference in New Issue
Block a user