On 7/24/12 12:45 AM, Derek Buitenhuis wrote:
From: Carl Eugen Hoyos <[email protected]>

Signed-off-by: Derek Buitenhuis <[email protected]>
---
  libavcodec/v410dec.c |    4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/v410dec.c b/libavcodec/v410dec.c
index d7660ee..93545ab 100644
--- a/libavcodec/v410dec.c
+++ b/libavcodec/v410dec.c
@@ -30,10 +30,10 @@ static av_cold int v410_decode_init(AVCodecContext *avctx)

      if (avctx->width & 1) {
          if (avctx->err_recognition & AV_EF_EXPLODE) {
-            av_log(avctx, AV_LOG_ERROR, "v410 requires width to be even, continuing 
anyway.\n");
+            av_log(avctx, AV_LOG_ERROR, "v410 requires width to be even.\n");
              return AVERROR_INVALIDDATA;
          } else {
-            av_log(avctx, AV_LOG_WARNING, "v410 requires width to be even.\n");
+            av_log(avctx, AV_LOG_WARNING, "v410 requires width to be even, 
continuing anyway.\n");
          }
      }

Make it "ignoring additional pixel" or "cropping" (or whatever we do that results in an unexpected frame size),
while you are at it.

If the we just decode the odd pixel make it loglevel verbose.

lu

lu


_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to