diff options
Diffstat (limited to 'ffmpeg/libavcodec/wmv2dec.c')
| -rw-r--r-- | ffmpeg/libavcodec/wmv2dec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ffmpeg/libavcodec/wmv2dec.c b/ffmpeg/libavcodec/wmv2dec.c index fccb1bb..4f2a5e9 100644 --- a/ffmpeg/libavcodec/wmv2dec.c +++ b/ffmpeg/libavcodec/wmv2dec.c @@ -446,6 +446,8 @@ int ff_wmv2_decode_mb(MpegEncContext *s, int16_t block[6][64]) static av_cold int wmv2_decode_init(AVCodecContext *avctx){ Wmv2Context * const w= avctx->priv_data; + avctx->flags |= CODEC_FLAG_EMU_EDGE; + if(ff_msmpeg4_decode_init(avctx) < 0) return -1; @@ -466,6 +468,7 @@ static av_cold int wmv2_decode_end(AVCodecContext *avctx) AVCodec ff_wmv2_decoder = { .name = "wmv2", + .long_name = NULL_IF_CONFIG_SMALL("Windows Media Video 8"), .type = AVMEDIA_TYPE_VIDEO, .id = AV_CODEC_ID_WMV2, .priv_data_size = sizeof(Wmv2Context), @@ -473,6 +476,5 @@ AVCodec ff_wmv2_decoder = { .close = wmv2_decode_end, .decode = ff_h263_decode_frame, .capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, - .long_name = NULL_IF_CONFIG_SMALL("Windows Media Video 8"), .pix_fmts = ff_pixfmt_list_420, }; |
