Browse Source

avcodec/ffv1enc_template: Be a bit more verbose on error

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer 3 days ago
parent
commit
0b097ed9f1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      libavcodec/ffv1enc_template.c

+ 2 - 2
libavcodec/ffv1enc_template.c

@@ -37,12 +37,12 @@ RENAME(encode_line)(FFV1Context *f, FFV1SliceContext *sc,
 
     if (ac != AC_GOLOMB_RICE) {
         if (c->bytestream_end - c->bytestream < w * 35) {
-            av_log(logctx, AV_LOG_ERROR, "encoded frame too large\n");
+            av_log(logctx, AV_LOG_ERROR, "encoded Range Coder frame too large\n");
             return AVERROR_INVALIDDATA;
         }
     } else {
         if (put_bytes_left(&sc->pb, 0) < w * 4) {
-            av_log(logctx, AV_LOG_ERROR, "encoded frame too large\n");
+            av_log(logctx, AV_LOG_ERROR, "encoded Golomb Rice frame too large\n");
             return AVERROR_INVALIDDATA;
         }
     }