mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
fix segfault with http://sam.zoy.org/zzuf/lol-ffplay.ogm and
http://sam.zoy.org/zzuf/lol-ffplay.ogg Originally committed as revision 7561 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
e56cfad04b
commit
0467531999
@ -672,6 +672,8 @@ struct SwsContext *sws_getContext(int srcW, int srcH, int srcFormat,
|
|||||||
|
|
||||||
void sws_freeContext(struct SwsContext *ctx)
|
void sws_freeContext(struct SwsContext *ctx)
|
||||||
{
|
{
|
||||||
|
if (!ctx)
|
||||||
|
return;
|
||||||
if ((ctx->resampling_ctx->iwidth != ctx->resampling_ctx->owidth) ||
|
if ((ctx->resampling_ctx->iwidth != ctx->resampling_ctx->owidth) ||
|
||||||
(ctx->resampling_ctx->iheight != ctx->resampling_ctx->oheight)) {
|
(ctx->resampling_ctx->iheight != ctx->resampling_ctx->oheight)) {
|
||||||
img_resample_close(ctx->resampling_ctx);
|
img_resample_close(ctx->resampling_ctx);
|
||||||
|
Loading…
Reference in New Issue
Block a user