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: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Ganesh Ajjanagadde 2015-08-22 23:24:38 -04:00 committed by Michael Niedermayer
parent 6be5b05fb1
commit 9aaac04107
1 changed files with 1 additions and 1 deletions

View File

@ -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));