Mercurial > libavcodec.hg
comparison imgresample.c @ 3516:f60df50f50aa libavcodec
Fix a corner case in sws emulation
author | lucabe |
---|---|
date | Tue, 25 Jul 2006 15:23:44 +0000 |
parents | ad3d12d04645 |
children | 19c437d6aba5 |
comparison
equal
deleted
inserted
replaced
3515:20938be7b67b | 3516:f60df50f50aa |
---|---|
754 av_log(NULL, AV_LOG_ERROR, "pixel format conversion not handled\n"); | 754 av_log(NULL, AV_LOG_ERROR, "pixel format conversion not handled\n"); |
755 | 755 |
756 res = -1; | 756 res = -1; |
757 goto the_end; | 757 goto the_end; |
758 } | 758 } |
759 } else if (resampled_picture != &dst_pict) { | |
760 img_copy(&dst_pict, resampled_picture, current_pix_fmt, | |
761 ctx->resampling_ctx->owidth, ctx->resampling_ctx->oheight); | |
759 } | 762 } |
760 | 763 |
761 the_end: | 764 the_end: |
762 av_free(buf1); | 765 av_free(buf1); |
763 av_free(buf2); | 766 av_free(buf2); |