You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-09-16 08:36:51 +02:00
avdevice/decklink_dec: fix leak on error
In the early return when both draw_bars and signal_loss_action
options are used, the context allocated previously was not
properly freed.
Introduced in 9bcb86b0fa
Fixes CID1619296
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
committed by
Marton Balint
parent
6ec6b07900
commit
7554346cb5
@@ -1098,6 +1098,7 @@ av_cold int ff_decklink_read_header(AVFormatContext *avctx)
|
||||
}
|
||||
if (!ctx->draw_bars && ctx->signal_loss_action != SIGNAL_LOSS_NONE) {
|
||||
av_log(avctx, AV_LOG_ERROR, "options draw_bars and signal_loss_action are mutually exclusive\n");
|
||||
av_freep(&ctx);
|
||||
return AVERROR(EINVAL);
|
||||
}
|
||||
ctx->audio_depth = cctx->audio_depth;
|
||||
|
Reference in New Issue
Block a user