summaryrefslogtreecommitdiff
path: root/ffmpeg/libavcodec/wmv2dec.c
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2013-12-29 12:19:38 +0000
committerTim Redfern <tim@eclectronics.org>2013-12-29 12:19:38 +0000
commitf7813a5324be39d13ab536c245d15dfc602a7849 (patch)
treefad99148b88823d34a5df2f0a25881a002eb291b /ffmpeg/libavcodec/wmv2dec.c
parentb7a5a477b8ff4d4e3028b9dfb9a9df0a41463f92 (diff)
basic type mechanism working
Diffstat (limited to 'ffmpeg/libavcodec/wmv2dec.c')
-rw-r--r--ffmpeg/libavcodec/wmv2dec.c4
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,
};