diff mbox series

[FFmpeg-devel,27/45] avcodec/sgienc: Combine av_log() statements

Message ID 20201127010249.2724610-27-andreas.rheinhardt@gmail.com
State Accepted
Commit 7722704774efd8af492071ba89251ae57c2a6d74
Headers show
Series [FFmpeg-devel,01/45] avcodec/a64multienc: Fix memleak upon init failure
Related show

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished

Commit Message

Andreas Rheinhardt Nov. 27, 2020, 1:02 a.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
---
 libavcodec/sgienc.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Anton Khirnov Dec. 4, 2020, 11:53 a.m. UTC | #1
Quoting Andreas Rheinhardt (2020-11-27 02:02:31)
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
> ---
>  libavcodec/sgienc.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 

Makes sense
diff mbox series

Patch

diff --git a/libavcodec/sgienc.c b/libavcodec/sgienc.c
index 65eff33bc8..3aa0c7f4a5 100644
--- a/libavcodec/sgienc.c
+++ b/libavcodec/sgienc.c
@@ -39,9 +39,9 @@  typedef struct SgiContext {
 static av_cold int encode_init(AVCodecContext *avctx)
 {
     if (avctx->width > 65535 || avctx->height > 65535) {
-        av_log(avctx, AV_LOG_ERROR,
-               "Unsupported resolution %dx%d.\n", avctx->width, avctx->height);
-        av_log(avctx, AV_LOG_ERROR, "SGI does not support resolutions above 65535x65535\n");
+        av_log(avctx, AV_LOG_ERROR, "Unsupported resolution %dx%d. "
+               "SGI does not support resolutions above 65535x65535\n",
+               avctx->width, avctx->height);
         return AVERROR_INVALIDDATA;
     }