print error when deinterlacing fails

Originally committed as revision 15201 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Baptiste Coudurier 16 years ago
parent 1462302027
commit 6b682df233
  1. 1
      ffmpeg.c

@ -730,6 +730,7 @@ static void pre_process_video_frame(AVInputStream *ist, AVPicture *picture, void
if(avpicture_deinterlace(picture2, picture, if(avpicture_deinterlace(picture2, picture,
dec->pix_fmt, dec->width, dec->height) < 0) { dec->pix_fmt, dec->width, dec->height) < 0) {
/* if error, do not deinterlace */ /* if error, do not deinterlace */
fprintf(stderr, "Deinterlacing failed\n");
av_free(buf); av_free(buf);
buf = NULL; buf = NULL;
picture2 = picture; picture2 = picture;

Loading…
Cancel
Save