Skip to content
Snippets Groups Projects
Commit 3e033da8 authored by Laurent Aimar's avatar Laurent Aimar Committed by Anton Khirnov
Browse files

rmdec: use the deinterleaving mode and not the codec when creating audio packets.


It prevents crashes due to non initialized fields.

Signed-off-by: default avatarAnton Khirnov <anton@khirnov.net>
parent 63d64228
No related branches found
No related tags found
No related merge requests found
...@@ -813,7 +813,8 @@ ff_rm_retrieve_cache (AVFormatContext *s, AVIOContext *pb, ...@@ -813,7 +813,8 @@ ff_rm_retrieve_cache (AVFormatContext *s, AVIOContext *pb,
assert (rm->audio_pkt_cnt > 0); assert (rm->audio_pkt_cnt > 0);
if (st->codec->codec_id == CODEC_ID_AAC) if (ast->deint_id == DEINT_ID_VBRF ||
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 {
av_new_packet(pkt, st->codec->block_align); av_new_packet(pkt, st->codec->block_align);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment