Permalink
Browse files

vc1dec: add flush function for WMV9 and VC-1 decoders

CC: libav-stable@libav.org
  • Loading branch information...
1 parent 8bd324e commit 4dc8c8386eef942dba35c4f2fb3210e22b511a5b Kostya Shishkov committed Sep 27, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 libavcodec/vc1dec.c
View
@@ -5686,6 +5686,7 @@ AVCodec ff_vc1_decoder = {
.init = vc1_decode_init,
.close = ff_vc1_decode_end,
.decode = vc1_decode_frame,
+ .flush = ff_mpeg_flush,
.capabilities = CODEC_CAP_DR1 | CODEC_CAP_DELAY,
.long_name = NULL_IF_CONFIG_SMALL("SMPTE VC-1"),
.pix_fmts = ff_hwaccel_pixfmt_list_420,
@@ -5701,6 +5702,7 @@ AVCodec ff_wmv3_decoder = {
.init = vc1_decode_init,
.close = ff_vc1_decode_end,
.decode = vc1_decode_frame,
+ .flush = ff_mpeg_flush,
.capabilities = CODEC_CAP_DR1 | CODEC_CAP_DELAY,
.long_name = NULL_IF_CONFIG_SMALL("Windows Media Video 9"),
.pix_fmts = ff_hwaccel_pixfmt_list_420,

0 comments on commit 4dc8c83

Please sign in to comment.