aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-12-27 03:03:45 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-12-27 03:03:45 +0000
commit9f175aa0755102e61c40920dfa03cd24201d8c07 (patch)
tree03500333c6481a257bb3ee9d0533504b47fd168c /libavcodec
parenta33cab3a9a48cbbb495d2548143751f1dee67213 (diff)
downloadffmpeg-9f175aa0755102e61c40920dfa03cd24201d8c07.tar.gz
Fix encoding wmv1 with -mbd 1.
fixes issue262 Originally committed as revision 11327 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mpegvideo_enc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index 200e08abc0..2624bba643 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -1769,6 +1769,8 @@ static inline void copy_context_before_encode(MpegEncContext *d, MpegEncContext
d->mb_skipped= 0;
d->qscale= s->qscale;
d->dquant= s->dquant;
+
+ d->esc3_level_length= s->esc3_level_length;
}
static inline void copy_context_after_encode(MpegEncContext *d, MpegEncContext *s, int type){
@@ -1806,6 +1808,8 @@ static inline void copy_context_after_encode(MpegEncContext *d, MpegEncContext *
d->block_last_index[i]= s->block_last_index[i];
d->interlaced_dct= s->interlaced_dct;
d->qscale= s->qscale;
+
+ d->esc3_level_length= s->esc3_level_length;
}
static inline void encode_mb_hq(MpegEncContext *s, MpegEncContext *backup, MpegEncContext *best, int type,