Revision 04c373c1 ffmpeg.c
ffmpeg.c | ||
---|---|---|
1228 | 1228 |
/* initialize a new scaler context */ |
1229 | 1229 |
sws_freeContext(ost->img_resample_ctx); |
1230 | 1230 |
sws_flags = av_get_int(sws_opts, "sws_flags", NULL); |
1231 |
ost->img_resample_ctx = sws_getContext( |
|
1232 |
ist->st->codec->width, |
|
1233 |
ist->st->codec->height, |
|
1234 |
ist->st->codec->pix_fmt, |
|
1235 |
ost->st->codec->width, |
|
1236 |
ost->st->codec->height, |
|
1237 |
ost->st->codec->pix_fmt, |
|
1238 |
sws_flags, NULL, NULL, NULL); |
|
1231 |
ost->img_resample_ctx = sws_getContext(dec->width, dec->height, dec->pix_fmt, |
|
1232 |
enc->width, enc->height, enc->pix_fmt, |
|
1233 |
sws_flags, NULL, NULL, NULL); |
|
1239 | 1234 |
if (ost->img_resample_ctx == NULL) { |
1240 | 1235 |
fprintf(stderr, "Cannot get resampling context\n"); |
1241 | 1236 |
ffmpeg_exit(1); |
Also available in: Unified diff