Commit b3c962fd authored by lucabe's avatar lucabe

Fix a corner case in sws emulation


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5827 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 85d9efa9
...@@ -756,6 +756,9 @@ int sws_scale(struct SwsContext *ctx, uint8_t* src[], int srcStride[], ...@@ -756,6 +756,9 @@ int sws_scale(struct SwsContext *ctx, uint8_t* src[], int srcStride[],
res = -1; res = -1;
goto the_end; goto the_end;
} }
} else if (resampled_picture != &dst_pict) {
img_copy(&dst_pict, resampled_picture, current_pix_fmt,
ctx->resampling_ctx->owidth, ctx->resampling_ctx->oheight);
} }
the_end: the_end:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment