Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37852966
en ru br
ALT Linux repos
S:4.7.0-alt1.1
5.0: 1.0.0-alt1
4.1: 1.0.0-alt1

Group :: System/Libraries
RPM: libopencv

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: opencv-1.0.0-ffmpeg.patch
Download


diff -urN opencv-1.0.0.orig/otherlibs/highgui/cvcap_ffmpeg.cpp opencv-1.0.0/otherlibs/highgui/cvcap_ffmpeg.cpp
--- opencv-1.0.0.orig/otherlibs/highgui/cvcap_ffmpeg.cpp	2006-07-25 01:27:39 +0300
+++ opencv-1.0.0/otherlibs/highgui/cvcap_ffmpeg.cpp	2008-03-16 02:28:05 +0200
@@ -42,6 +42,7 @@
 #include "_highgui.h"
 
 
+#define __STDC_CONSTANT_MACROS
 extern "C" {
 #include <ffmpeg/avformat.h>
 }
@@ -233,7 +234,6 @@
 
 static int icvSetPropertyAVI_FFMPEG( CvCaptureAVI_FFMPEG* capture,
                                      int property_id, double value );
-
 static double icvGetPropertyAVI_FFMPEG( CvCaptureAVI_FFMPEG* capture, int property_id )
 {
     if( !capture || !capture->video_st || !capture->picture->data[0] )
@@ -781,7 +781,11 @@
 
 	if (!(mywriter->fmt->flags & AVFMT_NOFILE)) {
 		/* close the output file */
+#if LIBAVFORMAT_BUILD > 4628
+		url_fclose(mywriter->oc->pb);
+#else
 		url_fclose(&mywriter->oc->pb);
+#endif
 	}
 
 	/* free the stream */
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin