Revision 2de28abb ffmpeg.c

View differences:

ffmpeg.c
1422 1422
                    ost->padleft = frame_padleft;
1423 1423
                    ost->padbottom = frame_padbottom;
1424 1424
                    ost->padright = frame_padright;
1425
                    avcodec_get_frame_defaults(&ost->pict_tmp);
1425 1426
                    if( avpicture_alloc( (AVPicture*)&ost->pict_tmp, PIX_FMT_YUV420P,
1426 1427
                                codec->width, codec->height ) )
1427 1428
                        goto fail;
1428 1429
                } else {
1429 1430
                    ost->video_resample = 1;
1430 1431
                    ost->video_crop = 0; // cropping is handled as part of resample
1432
                    avcodec_get_frame_defaults(&ost->pict_tmp);
1431 1433
                    if( avpicture_alloc( (AVPicture*)&ost->pict_tmp, PIX_FMT_YUV420P,
1432 1434
                                         codec->width, codec->height ) )
1433 1435
                        goto fail;
1434
                    avcodec_get_frame_defaults(&ost->pict_tmp);
1435 1436

  
1436 1437
                    ost->img_resample_ctx = img_resample_full_init( 
1437 1438
                                      ost->st->codec.width, ost->st->codec.height,

Also available in: Unified diff