Skip to content
Snippets Groups Projects
Commit 9aaac041 authored by Ganesh Ajjanagadde's avatar Ganesh Ajjanagadde Committed by Michael Niedermayer
Browse files

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: default avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
Reviewed-by: default avatarNicolas George <george@nsup.org>
Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
parent 6be5b05f
No related branches found
No related tags found
No related merge requests found
...@@ -337,7 +337,7 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx) ...@@ -337,7 +337,7 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx)
} }
if ((ret = create_subcc_streams(avctx)) < 0) if ((ret = create_subcc_streams(avctx)) < 0)
FAIL(ret); goto end;
if (!(lavfi->decoded_frame = av_frame_alloc())) if (!(lavfi->decoded_frame = av_frame_alloc()))
FAIL(AVERROR(ENOMEM)); FAIL(AVERROR(ENOMEM));
......
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