changeset 1810:fc6b38b5dd40 libavcodec

noise reduction with threads bugfix
author michael
date Tue, 17 Feb 2004 18:57:50 +0000
parents 45a7f6690782
children 98d4d32b90e8
files mpegvideo.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mpegvideo.c	Mon Feb 16 03:34:11 2004 +0000
+++ b/mpegvideo.c	Tue Feb 17 18:57:50 2004 +0000
@@ -463,6 +463,8 @@
     COPY(me.map_generation);
     COPY(pb);
     COPY(dct_error_sum);
+    COPY(dct_count[0]);
+    COPY(dct_count[1]);
 #undef COPY
 }
 
@@ -743,7 +745,6 @@
     av_freep(&s->q_inter_matrix16);
     av_freep(&s->input_picture);
     av_freep(&s->reordered_input_picture);
-    av_freep(&s->dct_error_sum);
     av_freep(&s->dct_offset);
 
     if(s->picture){
@@ -3739,7 +3740,7 @@
 #ifdef CONFIG_ENCODERS
 void ff_copy_bits(PutBitContext *pb, uint8_t *src, int length)
 {
-    const uint16_t *srcw= src;
+    const uint16_t *srcw= (uint16_t*)src;
     int words= length>>4;
     int bits= length&15;
     int i;