Skip to content

Commit

Permalink
ffmpeg_filter: Do not override the dimensions in sub2video_prepare()
Browse files Browse the repository at this point in the history
Fixes ticket4744 part1

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
  • Loading branch information
michaelni committed Aug 15, 2015
1 parent b1f59bb commit 72237ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ffmpeg_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -682,8 +682,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->dec_ctx->width = ist->resample_width = w;
ist->sub2video.h = ist->dec_ctx->height = ist->resample_height = h;
ist->sub2video.w = ist->resample_width = w;
ist->sub2video.h = 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 */
Expand Down

0 comments on commit 72237ef

Please sign in to comment.