diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-06 11:30:27 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-07 12:03:59 +0200 |
commit | 2beac7c325583160bdf2978de6e87176b9146da0 (patch) | |
tree | b0d5fb860be9cc7e84fd57ae6c6d53e451c9a2c2 | |
parent | 04c373c1e98c2f62632eb3cd12726945173225ea (diff) | |
download | ffmpeg-2beac7c325583160bdf2978de6e87176b9146da0.tar.gz |
ffmpeg: rename ost->pict_tmp to ost->resample_frame
The new name is more consistent with the employed naming scheme, and
more meaningful.
-rw-r--r-- | ffmpeg.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -285,7 +285,7 @@ typedef struct AVOutputStream { AVBitStreamFilterContext *bitstream_filters; /* video only */ int video_resample; - AVFrame pict_tmp; /* temporary image for resampling */ + AVFrame resample_frame; /* temporary frame for image resampling */ struct SwsContext *img_resample_ctx; /* for image resampling */ int resample_height; int resample_width; @@ -1214,12 +1214,12 @@ static void do_video_out(AVFormatContext *s, dec->pix_fmt != enc->pix_fmt; if (ost->video_resample) { - final_picture = &ost->pict_tmp; + final_picture = &ost->resample_frame; if (!ost->img_resample_ctx || resample_changed) { /* initialize the destination picture */ - if (!ost->pict_tmp.data[0]) { - avcodec_get_frame_defaults(&ost->pict_tmp); - if (avpicture_alloc((AVPicture *)&ost->pict_tmp, enc->pix_fmt, + if (!ost->resample_frame.data[0]) { + avcodec_get_frame_defaults(&ost->resample_frame); + if (avpicture_alloc((AVPicture *)&ost->resample_frame, enc->pix_fmt, enc->width, enc->height)) { fprintf(stderr, "Cannot allocate temp picture, check pix fmt\n"); ffmpeg_exit(1); @@ -1237,7 +1237,7 @@ static void do_video_out(AVFormatContext *s, } } sws_scale(ost->img_resample_ctx, formatted_picture->data, formatted_picture->linesize, - 0, ost->resample_height, ost->pict_tmp.data, ost->pict_tmp.linesize); + 0, ost->resample_height, ost->resample_frame.data, ost->resample_frame.linesize); } #endif @@ -2789,7 +2789,7 @@ static int transcode(AVFormatContext **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->resample_frame.data[0]); av_free(ost->forced_kf_pts); if (ost->video_resample) sws_freeContext(ost->img_resample_ctx); |