Revision 26ba8235

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,
1255
        img_convert_ctx = sws_getCachedContext(img_convert_ctx, is->video_st->codec->width,
1256 1256
                    is->video_st->codec->height, is->video_st->codec->pix_fmt,
1257 1257
                    is->video_st->codec->width, is->video_st->codec->height,
1258 1258
                    dst_pix_fmt, sws_flags, NULL, NULL, NULL);
1259
            if (img_convert_ctx == NULL) {
1260
                fprintf(stderr, "Cannot initialize the conversion context\n");
1261
                exit(1);
1262
            }
1259
        if (img_convert_ctx == NULL) {
1260
            fprintf(stderr, "Cannot initialize the conversion context\n");
1261
            exit(1);
1262
        }
1263 1263
        sws_scale(img_convert_ctx, src_frame->data, src_frame->linesize,
1264 1264
                  0, is->video_st->codec->height, pict.data, pict.linesize);
1265 1265
        /* update the bitmap content */

Also available in: Unified diff