Mercurial > libavcodec.hg
comparison vc1.c @ 12127:9ba7d2a5b20a libavcodec
Make WMV3 decoder print more errors when decoding beta WMV9 files.
As a side effect it will also decode a lot of P-frames from those.
author | kostya |
---|---|
date | Sat, 10 Jul 2010 14:36:53 +0000 |
parents | 7dd2a45249a9 |
children | 5915f4f0e172 |
comparison
equal
deleted
inserted
replaced
12126:3581c6b92f70 | 12127:9ba7d2a5b20a |
---|---|
386 if (!v->res_rtm_flag) | 386 if (!v->res_rtm_flag) |
387 { | 387 { |
388 // av_log(avctx, AV_LOG_ERROR, | 388 // av_log(avctx, AV_LOG_ERROR, |
389 // "0 for reserved RES_RTM_FLAG is forbidden\n"); | 389 // "0 for reserved RES_RTM_FLAG is forbidden\n"); |
390 av_log(avctx, AV_LOG_ERROR, | 390 av_log(avctx, AV_LOG_ERROR, |
391 "Old WMV3 version detected, only I-frames will be decoded\n"); | 391 "Old WMV3 version detected, some frames may be decoded incorrectly\n"); |
392 //return -1; | 392 //return -1; |
393 } | 393 } |
394 //TODO: figure out what they mean (always 0x402F) | 394 //TODO: figure out what they mean (always 0x402F) |
395 if(!v->res_fasttx) skip_bits(gb, 16); | 395 if(!v->res_fasttx) skip_bits(gb, 16); |
396 av_log(avctx, AV_LOG_DEBUG, | 396 av_log(avctx, AV_LOG_DEBUG, |