Revision 70c24b21 ffmpeg.c

View differences:

ffmpeg.c
1147 1147
                         int *frame_size)
1148 1148
{
1149 1149
    int nb_frames, i, ret, resample_changed;
1150
    AVFrame *final_picture, *formatted_picture, *resampling_dst;
1150
    AVFrame *final_picture, *formatted_picture;
1151 1151
    AVCodecContext *enc, *dec;
1152 1152
    double sync_ipts;
1153 1153

  
......
1192 1192

  
1193 1193
    formatted_picture = in_picture;
1194 1194
    final_picture = formatted_picture;
1195
    resampling_dst = &ost->pict_tmp;
1196 1195

  
1197 1196
    resample_changed = ost->resample_width   != dec->width  ||
1198 1197
                       ost->resample_height  != dec->height ||
......
1243 1242
            }
1244 1243
        }
1245 1244
        sws_scale(ost->img_resample_ctx, formatted_picture->data, formatted_picture->linesize,
1246
              0, ost->resample_height, resampling_dst->data, resampling_dst->linesize);
1245
                  0, ost->resample_height, ost->pict_tmp.data, ost->pict_tmp.linesize);
1247 1246
    }
1248 1247
#endif
1249 1248

  

Also available in: Unified diff