aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorLuca Abeni <lucabe72@email.it>2006-03-29 08:25:09 +0000
committerLuca Abeni <lucabe72@email.it>2006-03-29 08:25:09 +0000
commitc17be817637ade85fb5d8138e8f402e67b51ac23 (patch)
tree776170c9d0401369c4b9925f281798b4853a6624 /ffmpeg.c
parent22dde0e9550f5a114ce26c65ef4751efeb1d8d02 (diff)
downloadffmpeg-c17be817637ade85fb5d8138e8f402e67b51ac23.tar.gz
Change img_convert() from img_fmt to img_fmt with img_copy()
Originally committed as revision 5236 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index e439bf2e83..69bb5f7359 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -626,13 +626,7 @@ static void pre_process_video_frame(AVInputStream *ist, AVPicture *picture, void
picture2 = picture;
}
} else {
- if (img_convert(picture2, dec->pix_fmt, picture,
- dec->pix_fmt, dec->width, dec->height) < 0) {
- /* if error, do not copy */
- av_free(buf);
- buf = NULL;
- picture2 = picture;
- }
+ img_copy(picture2, picture, dec->pix_fmt, dec->width, dec->height);
}
} else {
picture2 = picture;