Revision feb7bc67 ffplay.c

View differences:

ffplay.c
1252 1252
        pict.linesize[0] = vp->bmp->pitches[0];
1253 1253
        pict.linesize[1] = vp->bmp->pitches[2];
1254 1254
        pict.linesize[2] = vp->bmp->pitches[1];
1255
        img_convert_ctx = sws_getCachedContext(img_convert_ctx, is->video_st->codec->width,
1256
                    is->video_st->codec->height, is->video_st->codec->pix_fmt,
1257
                    is->video_st->codec->width, is->video_st->codec->height,
1258
                    dst_pix_fmt, sws_flags, NULL, NULL, NULL);
1255
        img_convert_ctx = sws_getCachedContext(img_convert_ctx,
1256
            is->video_st->codec->width, is->video_st->codec->height,
1257
            is->video_st->codec->pix_fmt,
1258
            is->video_st->codec->width, is->video_st->codec->height,
1259
            dst_pix_fmt, sws_flags, NULL, NULL, NULL);
1259 1260
        if (img_convert_ctx == NULL) {
1260 1261
            fprintf(stderr, "Cannot initialize the conversion context\n");
1261 1262
            exit(1);

Also available in: Unified diff