[BACK]Return to patch-Cross_plugins_Mpeg3Plugin_libmpeg_video_getpicture.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / lang / squeak-vm / patches

File: [cvs.NetBSD.org] / pkgsrc / lang / squeak-vm / patches / patch-Cross_plugins_Mpeg3Plugin_libmpeg_video_getpicture.c (download)

Revision 1.1, Sat Oct 20 22:12:30 2012 UTC (9 years, 1 month ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, HEAD

Only return without value, if the function is void.

$NetBSD: patch-Cross_plugins_Mpeg3Plugin_libmpeg_video_getpicture.c,v 1.1 2012/10/20 22:12:30 joerg Exp $

--- Cross/plugins/Mpeg3Plugin/libmpeg/video/getpicture.c.orig	2012-10-20 13:52:22.000000000 +0000
+++ Cross/plugins/Mpeg3Plugin/libmpeg/video/getpicture.c
@@ -205,7 +205,7 @@ int mpeg3video_getintrablock(mpeg3_slice
 		{
 /*    	  	fprintf(stderr, "mpeg3video_getintrablock: invalid Huffman code\n"); */
     	  	slice->fault = 1;
-    	  	return;
+    	  	return 1;
     	}
 
     	mpeg3slice_flushbits(slice_buffer, tab->len);
@@ -240,7 +240,7 @@ int mpeg3video_getintrablock(mpeg3_slice
 		else
 		{
     	  	slice->fault = 1;
-    	  	return;
+    	  	return 1;
 		}
 			
 
@@ -397,7 +397,7 @@ int mpeg3video_getmpg2intrablock(mpeg3_s
 	else                  
 		val = (dc_dct_pred[2] += mpeg3video_getdcchrom(slice_buffer));
 
-  	if(slice->fault) return;
+  	if(slice->fault) return 1;
 #ifdef HAVE_MMX
 	if(video->have_mmx)
   		bp[0] = val << (7 - video->dc_prec);
@@ -463,7 +463,7 @@ int mpeg3video_getmpg2intrablock(mpeg3_s
 			{
 // invalid signed_level (escape)
         		slice->fault = 1;
-        		return;
+        		return 1;
     	  	}
     	  	if((sign = (val >= 2048)) != 0) val = 4096 - val;
     	}
@@ -545,7 +545,7 @@ int mpeg3video_getmpg2interblock(mpeg3_s
 		{
 // invalid Huffman code
     		slice->fault = 1;
-    		return;
+    		return 1;
     	}
 
     	mpeg3slice_flushbits(slice_buffer, tab->len);