[FFmpeg-devel] [PATCH] RoQ decoder: Remove misleading diagnostics
u-owvm at aetey.se
u-owvm at aetey.se
Fri Jan 31 20:51:00 CET 2014
It is not necessarily an error when a chunk does not cover a whole block.
The messages did not reflect the actual situation either.
Attaching the patch.
Regards,
Rl
-------------- next part --------------
>From 91562413f1c14231f15385aceae48b503a4582a0 Mon Sep 17 00:00:00 2001
From: Rl <addr-see-the-website at aetey.se>
Date: Wed, 29 Jan 2014 14:33:45 +0100
Subject: [PATCH 1/3] RoQ decoder: Remove misleading diagnostics.
It is not necessarily an error when a chunk does not cover a whole block.
Messages did not reflect the actual situation either.
---
libavcodec/roqvideodec.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/roqvideodec.c b/libavcodec/roqvideodec.c
index 8e7dffe..322345e 100644
--- a/libavcodec/roqvideodec.c
+++ b/libavcodec/roqvideodec.c
@@ -79,7 +79,7 @@ static void roqvideo_decode_frame(RoqContext *ri)
for (yp = ypos; yp < ypos + 16; yp += 8)
for (xp = xpos; xp < xpos + 16; xp += 8) {
if (bytestream2_tell(&ri->gb) >= chunk_start + chunk_size) {
- av_log(ri->avctx, AV_LOG_ERROR, "Input buffer too small\n");
+ av_log(ri->avctx, AV_LOG_VERBOSE, "Chunk is too short\n");
return;
}
if (vqflg_pos < 0) {
@@ -114,7 +114,7 @@ static void roqvideo_decode_frame(RoqContext *ri)
if(k & 0x02) y += 4;
if (bytestream2_tell(&ri->gb) >= chunk_start + chunk_size) {
- av_log(ri->avctx, AV_LOG_ERROR, "Input buffer too small\n");
+ av_log(ri->avctx, AV_LOG_VERBOSE, "Chunk is too short\n");
return;
}
if (vqflg_pos < 0) {
--
1.6.1
More information about the ffmpeg-devel
mailing list