diff options
author | Luca Abeni <lucabe72@email.it> | 2006-03-29 08:25:09 +0000 |
---|---|---|
committer | Luca Abeni <lucabe72@email.it> | 2006-03-29 08:25:09 +0000 |
commit | c17be817637ade85fb5d8138e8f402e67b51ac23 (patch) | |
tree | 776170c9d0401369c4b9925f281798b4853a6624 /ffmpeg.c | |
parent | 22dde0e9550f5a114ce26c65ef4751efeb1d8d02 (diff) | |
download | ffmpeg-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.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -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; |