aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2012-09-27 19:25:06 +0200
committerAnton Khirnov <anton@khirnov.net>2012-09-28 08:04:33 +0200
commit02b72394627933dc8ce26445231a69f00dba491b (patch)
tree4e82d1616bdef4b4b0b50d317affa97748611ba2
parent8efae4cbbf510588920d81b7e84d6e80ff1226df (diff)
downloadffmpeg-02b72394627933dc8ce26445231a69f00dba491b.tar.gz
vc1dec: add flush function for WMV9 and VC-1 decoders
CC: libav-stable@libav.org (cherry picked from commit 4dc8c8386eef942dba35c4f2fb3210e22b511a5b) Signed-off-by: Anton Khirnov <anton@khirnov.net>
-rw-r--r--libavcodec/vc1dec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index 3d1abc71a5..46cfdb0973 100644
--- a/libavcodec/vc1dec.c
+++ b/libavcodec/vc1dec.c
@@ -5812,6 +5812,7 @@ AVCodec ff_vc1_decoder = {
.init = vc1_decode_init,
.close = 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,
@@ -5827,6 +5828,7 @@ AVCodec ff_wmv3_decoder = {
.init = vc1_decode_init,
.close = 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,