Revision a6f395d6

View differences:

ffplay.c
1357 1357
static int queue_picture(VideoState *is, AVFrame *src_frame, double pts, int64_t pos)
1358 1358
{
1359 1359
    VideoPicture *vp;
1360
#if CONFIG_AVFILTER
1361
    AVPicture pict_src;
1362
#endif
1360

  
1363 1361
    /* wait until we have space to put a new picture */
1364 1362
    SDL_LockMutex(is->pictq_mutex);
1365 1363

  
......
1429 1427
        pict.linesize[2] = vp->bmp->pitches[1];
1430 1428

  
1431 1429
#if CONFIG_AVFILTER
1432
        pict_src.data[0] = src_frame->data[0];
1433
        pict_src.data[1] = src_frame->data[1];
1434
        pict_src.data[2] = src_frame->data[2];
1435

  
1436
        pict_src.linesize[0] = src_frame->linesize[0];
1437
        pict_src.linesize[1] = src_frame->linesize[1];
1438
        pict_src.linesize[2] = src_frame->linesize[2];
1439

  
1440 1430
        //FIXME use direct rendering
1441
        av_picture_copy(&pict, &pict_src,
1431
        av_picture_copy(&pict, (AVPicture *)src_frame,
1442 1432
                        vp->pix_fmt, vp->width, vp->height);
1443 1433
#else
1444 1434
        sws_flags = av_get_int(sws_opts, "sws_flags", NULL);

Also available in: Unified diff