[FFmpeg-cvslog] Initialize num_logged_tiles and remove unnecessary codes

Mashiat Sarker Shakkhar git at videolan.org
Sun Nov 20 16:01:42 CET 2011


ffmpeg | branch: master | Mashiat Sarker Shakkhar <shahriman_ams at yahoo.com> | Thu Nov 10 12:05:42 2011 +0600| [1e0db1c52addb8f92cc0e40d3005dc76c0c842d9] | committer: Mashiat Sarker Shakkhar

Initialize num_logged_tiles and remove unnecessary codes

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1e0db1c52addb8f92cc0e40d3005dc76c0c842d9
---

 libavcodec/wmalosslessdec.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c
index 60af8c6..500576b 100644
--- a/libavcodec/wmalosslessdec.c
+++ b/libavcodec/wmalosslessdec.c
@@ -287,7 +287,7 @@ typedef struct WmallDecodeCtx {
 #define dprintf(pctx, ...) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__)
 
 
-//static int num_logged_tiles;
+static int num_logged_tiles = 0;
 
 /**
  *@brief helper function to print the most important members of the context
@@ -337,7 +337,6 @@ static av_cold int decode_init(AVCodecContext *avctx)
     int log2_max_num_subframes;
     int num_possible_block_sizes;
 
-    //num_logged_tiles = 0;
     s->avctx = avctx;
     dsputil_init(&s->dsp, avctx);
     init_put_bits(&s->pb, s->frame_data, MAX_FRAMESIZE);
@@ -703,7 +702,6 @@ static int decode_channel_residues(WmallDecodeCtx *s, int ch, int tile_size)
 //	dprintf(s->avctx, "%5d: %5d %10d %12d %12d %5d %-16d %04x\n",i, quo, ave_mean, s->ave_sum[ch], rem, rem_bits, s->channel_residues[ch][i], show_bits(&s->gb, 16));
     }
     av_log(0, 0, "\n Tile size = %d\n", tile_size);
-    //num_logged_tiles++;
 
     return 0;
 



More information about the ffmpeg-cvslog mailing list