History

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.

Andreas Rheinhardt committed 2 years ago

Commit c94d81c1 parent 0876b161 file · +1 −2Browse files

Unified · Split

libavcodec/h261dec.c+1−2
@@ -415,8 +415,7 @@ static int h261_decode_mb(H261DecContext *h) · 414 unmodified lines
415 // Read mtype415 // Read mtype
416 com->mtype = get_vlc2(&s->gb, h261_mtype_vlc, H261_MTYPE_VLC_BITS, 2);416 com->mtype = get_vlc2(&s->gb, h261_mtype_vlc, H261_MTYPE_VLC_BITS, 2);
417 if (com->mtype < 0) {417 if (com->mtype < 0) {
418 av_log(s->avctx, AV_LOG_ERROR, "Invalid mtype index %d\n",418 av_log(s->avctx, AV_LOG_ERROR, "Invalid mtype index\n");
419 com->mtype);
420 return SLICE_ERROR;419 return SLICE_ERROR;
421 }420 }
422 421

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t