ffmpeg: sub2video: set resample size.

Necessary after 04a530f.
This commit is contained in:
Nicolas George 2013-01-01 17:25:04 +01:00
parent 5ed5e90f2a
commit 102cf964dd
1 changed files with 2 additions and 2 deletions

View File

@ -517,8 +517,8 @@ static int sub2video_prepare(InputStream *ist)
}
av_log(avf, AV_LOG_INFO, "sub2video: using %dx%d canvas\n", w, h);
}
ist->sub2video.w = ist->st->codec->width = w;
ist->sub2video.h = ist->st->codec->height = h;
ist->sub2video.w = ist->st->codec->width = ist->resample_width = w;
ist->sub2video.h = ist->st->codec->height = ist->resample_height = h;
/* rectangles are AV_PIX_FMT_PAL8, but we have no guarantee that the
palettes for all rectangles are identical or compatible */