[xiph-commits] r13422 - trunk/ffmpeg2theora

j at svn.xiph.org j at svn.xiph.org
Wed Aug 1 03:33:05 PDT 2007


Author: j
Date: 2007-08-01 03:33:05 -0700 (Wed, 01 Aug 2007)
New Revision: 13422

Modified:
   trunk/ffmpeg2theora/ffmpeg2theora.c
Log:
if deinterlace fails is usualy not possible to continue, exit instead a crash

Modified: trunk/ffmpeg2theora/ffmpeg2theora.c
===================================================================
--- trunk/ffmpeg2theora/ffmpeg2theora.c	2007-08-01 06:24:17 UTC (rev 13421)
+++ trunk/ffmpeg2theora/ffmpeg2theora.c	2007-08-01 10:33:05 UTC (rev 13422)
@@ -706,7 +706,8 @@
                             }
                             if(frame->interlaced_frame || this->deinterlace){
                                 if(avpicture_deinterlace((AVPicture *)output,(AVPicture *)output_tmp,this->pix_fmt,venc->width,venc->height)<0){
-                                        fprintf(stderr," failed deinterlace\n");
+                                        fprintf(stderr,"Deinterlace failed.\n");
+                                        exit(1);
                                         // deinterlace failed
                                          output=output_tmp;
                                 }



More information about the commits mailing list