[Ffmpeg-devel] [PATCH] fix error croping
Limin Wang
lance.lmwang
Tue Apr 3 11:36:50 CEST 2007
Hi,
> > $subj, please review it. If your input yuv is 422 packet format, then
> > you'll failed to crop.
>
> .. no attachment ..
sorry, attached the patch now.
Thanks,
Limin
-------------- next part --------------
Index: ffmpeg.c
===================================================================
--- ffmpeg.c (revision 8565)
+++ ffmpeg.c (working copy)
@@ -715,7 +715,7 @@
return;
if (ost->video_crop) {
- if (av_picture_crop((AVPicture *)&picture_crop_temp, (AVPicture *)in_picture, dec->pix_fmt, ost->topBand, ost->leftBand) < 0) {
+ if (av_picture_crop((AVPicture *)&picture_crop_temp, (AVPicture *)in_picture, enc->pix_fmt, ost->topBand, ost->leftBand) < 0) {
av_log(NULL, AV_LOG_ERROR, "error cropping picture\n");
return;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070403/f4e273f2/attachment.pgp>
More information about the ffmpeg-devel
mailing list