| 460 | } |
| 461 | |
| 462 | static av_cold int wmv2_decode_init(AVCodecContext *avctx){ |
| 463 | Wmv2Context * const w= avctx->priv_data; |
| 464 | |
| 465 | if(avctx->idct_algo==FF_IDCT_AUTO){ |
| 466 | avctx->idct_algo=FF_IDCT_WMV2; |
| 467 | } |
| 468 | |
| 469 | if(ff_msmpeg4_decode_init(avctx) < 0) |
| 470 | return -1; |
| 471 | |
| 472 | ff_wmv2_common_init(w); |
| 473 | |
| 474 | ff_intrax8_common_init(&w->x8,&w->s); |
| 475 | |
| 476 | return 0; |
| 477 | } |
| 478 | |
| 479 | static av_cold int wmv2_decode_end(AVCodecContext *avctx) |
| 480 | { |
nothing calls this directly
no test coverage detected