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.
Unified · Split
| @@ -415,8 +415,7 @@ static int h261_decode_mb(H261DecContext *h) · 414 unmodified lines | |||
| 415 | // Read mtype | 415 | // 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 | ||