mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
lavf/mov: avoid leaks with multiple dv-audio streams
This commit is contained in:
parent
1ef4620290
commit
693c1e631c
@ -2431,6 +2431,11 @@ static int mov_finalize_stsd_codec(MOVContext *c, AVIOContext *pb,
|
||||
switch (st->codecpar->codec_id) {
|
||||
#if CONFIG_DV_DEMUXER
|
||||
case AV_CODEC_ID_DVAUDIO:
|
||||
if (c->dv_fctx) {
|
||||
avpriv_request_sample(c->fc, "multiple DV audio streams");
|
||||
return AVERROR(ENOSYS);
|
||||
}
|
||||
|
||||
c->dv_fctx = avformat_alloc_context();
|
||||
if (!c->dv_fctx) {
|
||||
av_log(c->fc, AV_LOG_ERROR, "dv demux context alloc error\n");
|
||||
|
Loading…
Reference in New Issue
Block a user