Browse Source

Change img_convert() from img_fmt to img_fmt with img_copy()

Originally committed as revision 5236 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Luca Abeni 19 years ago
parent
commit
c17be81763
1 changed files with 1 additions and 7 deletions
  1. +1
    -7
      ffmpeg.c

+ 1
- 7
ffmpeg.c View File

@@ -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;


Loading…
Cancel
Save