This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit ef182f22897a0b11b386453bd13eaff920fe87b3 Author: Niklas Haas <[email protected]> AuthorDate: Sun Apr 5 13:22:23 2026 +0200 Commit: Niklas Haas <[email protected]> CommitDate: Wed Jun 3 23:53:15 2026 +0200 swscale/tests/sws_ops: avoid confusing double label Signed-off-by: Niklas Haas <[email protected]> --- libswscale/tests/sws_ops.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/libswscale/tests/sws_ops.c b/libswscale/tests/sws_ops.c index 63e779bba4..ab9d99907b 100644 --- a/libswscale/tests/sws_ops.c +++ b/libswscale/tests/sws_ops.c @@ -197,7 +197,7 @@ int main(int argc, char **argv) src_fmt = av_get_pix_fmt(argv[i + 1]); if (src_fmt == AV_PIX_FMT_NONE) { fprintf(stderr, "invalid pixel format %s\n", argv[i + 1]); - goto error; + return AVERROR(EINVAL); } i++; } else if (!strcmp(argv[i], "-dst")) { @@ -206,7 +206,7 @@ int main(int argc, char **argv) dst_fmt = av_get_pix_fmt(argv[i + 1]); if (dst_fmt == AV_PIX_FMT_NONE) { fprintf(stderr, "invalid pixel format %s\n", argv[i + 1]); - goto error; + return AVERROR(EINVAL); } i++; } else if (!strcmp(argv[i], "-v")) { @@ -219,7 +219,7 @@ int main(int argc, char **argv) } else { bad_option: fprintf(stderr, "bad option or argument missing (%s) see -help\n", argv[i]); - goto error; + return AVERROR(EINVAL); } } @@ -256,7 +256,4 @@ bad_option: fail: sws_free_context(&ctx); return ret; - -error: - return AVERROR(EINVAL); } _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
