[FFmpeg-cvslog] avcodec/h261dec: Remove nonsense information from error message
Andreas Rheinhardt
git at videolan.org
Thu Jun 20 19:59:31 EEST 2024
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sun Jun 2 18:50:54 2024 +0200| [c94d81ce00862f3bb8558356284caeb6ca7234db] | committer: Andreas Rheinhardt
avcodec/h261dec: Remove nonsense information from error message
The "invalid mtype index" here is always -1, because that is
the value the VLC api uses for not existent leafs in an incomplete tree.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c94d81ce00862f3bb8558356284caeb6ca7234db
---
libavcodec/h261dec.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavcodec/h261dec.c b/libavcodec/h261dec.c
index 05279b9ec5..b62575b7b3 100644
--- a/libavcodec/h261dec.c
+++ b/libavcodec/h261dec.c
@@ -415,8 +415,7 @@ static int h261_decode_mb(H261DecContext *h)
// Read mtype
com->mtype = get_vlc2(&s->gb, h261_mtype_vlc, H261_MTYPE_VLC_BITS, 2);
if (com->mtype < 0) {
- av_log(s->avctx, AV_LOG_ERROR, "Invalid mtype index %d\n",
- com->mtype);
+ av_log(s->avctx, AV_LOG_ERROR, "Invalid mtype index\n");
return SLICE_ERROR;
}
More information about the ffmpeg-cvslog
mailing list