Commit 9aaac041 authored by Ganesh Ajjanagadde's avatar Ganesh Ajjanagadde Committed by Michael Niedermayer

avdevice/lavfi: fix self assignment warning

FAIL(ret) expands to statements including a silly ret=ret.
This triggers a -Wself-assign on confirmed clang 3.6, and so we fix it.
Signed-off-by: 's avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
Reviewed-by: 's avatarNicolas George <george@nsup.org>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 6be5b05f
......@@ -337,7 +337,7 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx)
}
if ((ret = create_subcc_streams(avctx)) < 0)
FAIL(ret);
goto end;
if (!(lavfi->decoded_frame = av_frame_alloc()))
FAIL(AVERROR(ENOMEM));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment