]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/sgienc.c
avcodec/binkaudio: Fix memleak upon init failure
[ffmpeg] / libavcodec / sgienc.c
index 65eff33bc83bc127d5d8b1e123c3a8942f948e6d..3aa0c7f4a59822ba35d53d93997f16a137eb7d36 100644 (file)
@@ -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;
     }