summaryrefslogtreecommitdiff
path: root/libavcodec/wmv2enc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-01-21 16:28:04 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-01-21 16:28:04 +0100
commitcf4515ecd985aab899f24a6b7d18432001e670fa (patch)
tree044e03a1909155a1f27871371b0043c2baa758ed /libavcodec/wmv2enc.c
parent6ea8a830e8f1eee465174c479840b18b4963d43d (diff)
parentce378f0dd0c4e5350b3280e6b3e8d6b46fe4b0a3 (diff)
downloadffmpeg-cf4515ecd985aab899f24a6b7d18432001e670fa.tar.gz
Merge commit 'ce378f0dd0c4e5350b3280e6b3e8d6b46fe4b0a3'
* commit 'ce378f0dd0c4e5350b3280e6b3e8d6b46fe4b0a3': fate: Use wmv2 IDCT for wmv2 tests vorbisdsp: change block_size type from int to intptr_t. Conflicts: tests/fate-run.sh tests/fate/vcodec.mak Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/wmv2enc.c')
-rw-r--r--libavcodec/wmv2enc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/wmv2enc.c b/libavcodec/wmv2enc.c
index e6e1e678c1..e5f3752145 100644
--- a/libavcodec/wmv2enc.c
+++ b/libavcodec/wmv2enc.c
@@ -55,6 +55,10 @@ static int encode_ext_header(Wmv2Context *w){
static av_cold int wmv2_encode_init(AVCodecContext *avctx){
Wmv2Context * const w= avctx->priv_data;
+ if(avctx->idct_algo==FF_IDCT_AUTO){
+ avctx->idct_algo=FF_IDCT_WMV2;
+ }
+
if(ff_MPV_encode_init(avctx) < 0)
return -1;