summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2007-03-07 09:38:08 +0000
committerGuillaume Poirier <gpoirier@mplayerhq.hu>2007-03-07 09:38:08 +0000
commit8e532e681e5658ae7c7f9a5fa4c21d614f4b7b6b (patch)
tree11441efa3834763635295246e2c6adb7872cc23a /ffmpeg.c
parent29301573aff1f13d20ac2d1108cb5302a1a95473 (diff)
remove unused variables
patch by Limin Wang % lance P lmwang A gmail P com % Original thread: Subj: [Ffmpeg-devel] [PATCH] remove unused variables Date: 2007-03-07-07:37 AM Originally committed as revision 8284 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index db3f4328e9..a7ec8c6144 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -270,8 +270,6 @@ typedef struct AVInputFile {
int eof_reached; /* true if eof reached */
int ist_index; /* index of first stream in ist_table */
int buffer_size; /* current total buffer size */
- int buffer_size_max; /* buffer size at which we consider we can stop
- buffering */
int nb_streams; /* nb streams we are aware of */
} AVInputFile;
@@ -675,7 +673,6 @@ static void do_video_out(AVFormatContext *s,
int nb_frames, i, ret;
AVFrame *final_picture, *formatted_picture, *resampling_dst, *padding_src;
AVFrame picture_crop_temp, picture_pad_temp;
- uint8_t *buf = NULL, *buf1 = NULL;
AVCodecContext *enc, *dec;
avcodec_get_frame_defaults(&picture_crop_temp);
@@ -832,8 +829,7 @@ static void do_video_out(AVFormatContext *s,
ost->frame_number++;
}
the_end:
- av_free(buf);
- av_free(buf1);
+ return;
}
static double psnr(double d){
@@ -1768,11 +1764,6 @@ static int av_encode(AVFormatContext **output_files,
ist->is_start = 1;
}
- /* compute buffer size max (should use a complete heuristic) */
- for(i=0;i<nb_input_files;i++) {
- file_table[i].buffer_size_max = 2048;
- }
-
/* set meta data information from input file if required */
for (i=0;i<nb_meta_data_maps;i++) {
AVFormatContext *out_file;