diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-03-14 09:20:17 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-04-06 20:21:07 +0200 |
commit | 4648fe632464830c62b40e68a0fce8e7723d6939 (patch) | |
tree | e4a0b8f2a0fc8f7820370c00d94ed3efedb00958 /avconv.c | |
parent | e06d2dfcdecae6b2a28a5afa29c5f4535f02143a (diff) | |
download | ffmpeg-4648fe632464830c62b40e68a0fce8e7723d6939.tar.gz |
avconv: remove now pointless variables.
Diffstat (limited to 'avconv.c')
-rw-r--r-- | avconv.c | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -216,8 +216,6 @@ typedef struct OutputStream { /* video only */ int video_resample; - AVFrame pict_tmp; /* temporary image for resampling */ - struct SwsContext *img_resample_ctx; /* for image resampling */ int resample_height; int resample_width; int resample_pix_fmt; @@ -1314,7 +1312,6 @@ static void do_video_out(AVFormatContext *s, int *frame_size, float quality) { int nb_frames, i, ret, format_video_sync; - AVFrame *final_picture; AVCodecContext *enc; double sync_ipts, delta; @@ -1364,8 +1361,6 @@ static void do_video_out(AVFormatContext *s, av_log(NULL, AV_LOG_VERBOSE, "*** %d dup!\n", nb_frames - 1); } - final_picture = in_picture; - if (!ost->frame_number) ost->first_pts = ost->sync_opts; @@ -1386,7 +1381,7 @@ static void do_video_out(AVFormatContext *s, method. */ enc->coded_frame->interlaced_frame = in_picture->interlaced_frame; enc->coded_frame->top_field_first = in_picture->top_field_first; - pkt.data = (uint8_t *)final_picture; + pkt.data = (uint8_t *)in_picture; pkt.size = sizeof(AVPicture); pkt.pts = av_rescale_q(ost->sync_opts, enc->time_base, ost->st->time_base); pkt.flags |= AV_PKT_FLAG_KEY; @@ -1396,7 +1391,7 @@ static void do_video_out(AVFormatContext *s, int got_packet; AVFrame big_picture; - big_picture = *final_picture; + big_picture = *in_picture; /* better than nothing: use input picture interlaced settings */ big_picture.interlaced_frame = in_picture->interlaced_frame; @@ -2793,10 +2788,7 @@ static int transcode(OutputFile *output_files, av_fifo_free(ost->fifo); /* works even if fifo is not initialized but set to zero */ av_freep(&ost->st->codec->subtitle_header); - av_free(ost->pict_tmp.data[0]); av_free(ost->forced_kf_pts); - if (ost->video_resample) - sws_freeContext(ost->img_resample_ctx); if (ost->resample) audio_resample_close(ost->resample); if (ost->reformat_ctx) |