SOURCES: avifile-fix-no-bits_per_sample.patch - updated for more files

blekot blekot at pld-linux.org
Sun Oct 5 00:48:54 CEST 2008


Author: blekot                       Date: Sat Oct  4 22:48:54 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- updated for more files

---- Files affected:
SOURCES:
   avifile-fix-no-bits_per_sample.patch (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/avifile-fix-no-bits_per_sample.patch
diff -u SOURCES/avifile-fix-no-bits_per_sample.patch:1.1 SOURCES/avifile-fix-no-bits_per_sample.patch:1.2
--- SOURCES/avifile-fix-no-bits_per_sample.patch:1.1	Sun Oct  5 00:41:50 2008
+++ SOURCES/avifile-fix-no-bits_per_sample.patch	Sun Oct  5 00:48:49 2008
@@ -18,3 +18,25 @@
              // hack which might be eventually usefull
  	    memcpy(&bh->biXPelsPerMeter, &m_pHandler->m_pContext, sizeof(void*));
  	    if (bh->biCompression == 0)
+--- avifile-0.7-0.7.45/plugins/libffmpeg/FFVideoDecoder.cpp.old	2008-10-05 00:44:29.000000000 +0200
++++ avifile-0.7-0.7.45/plugins/libffmpeg/FFVideoDecoder.cpp	2008-10-05 00:45:45.000000000 +0200
+@@ -175,7 +175,7 @@
+ 	m_pAvContext = avcodec_alloc_context();
+         // for autodetection errors
+ 	m_pAvContext->codec_tag = m_pFormat->biCompression;
+-	m_pAvContext->bits_per_sample = m_pFormat->biBitCount;
++	m_pAvContext->bits_per_coded_sample = m_pFormat->biBitCount;
+         m_pAvContext->width = m_Dest.biWidth;
+ 	m_pAvContext->height = (m_Dest.biHeight < 0) ? -m_Dest.biHeight : m_Dest.biHeight;
+ 	m_pAvContext->get_buffer = avcodec_default_get_buffer;
+--- avifile-0.7-0.7.45/plugins/libffmpeg/FFAudioDecoder.cpp.old	2008-10-05 00:43:45.000000000 +0200
++++ avifile-0.7-0.7.45/plugins/libffmpeg/FFAudioDecoder.cpp	2008-10-05 00:43:57.000000000 +0200
+@@ -50,7 +50,7 @@
+ 	}
+     }
+     int framesz = 0;
+-    int hr = avcodec_decode_audio(m_pAvContext, (int16_t*)out_data, &framesz,
++    int hr = avcodec_decode_audio2(m_pAvContext, (int16_t*)out_data, &framesz,
+ 				  (uint8_t*)in_data, in_size);
+     //printf("CONVERT  i:%d  o:%d  f:%d   h:%d\n", in_size, out_size, framesz, hr);
+     if (size_read)
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/avifile-fix-no-bits_per_sample.patch?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list