tag 622206 + patch thanks Hi,
I'm going to upload the patch very soon. Attached in this mail. It uses %p rather than %x for printing pointers. Regards, Paul -- PaulLiu (劉穎駿) E-mail: Ying-Chun Liu (PaulLiu) <paul...@debian.org>
Description: Fix printf pointer address Convert the pointer address to int and then print it out with %x doesn't work on 64-bit systems. We should use %p for that. Bug-Debian: http://bugs.debian.org/622206 Author: Ying-Chun Liu (PaulLiu) <paul...@debian.org> Last-Update: 2011-04-12 Index: libomxvorbis-0.1/src/omx_vorbisdec_component.c =================================================================== --- libomxvorbis-0.1.orig/src/omx_vorbisdec_component.c 2011-04-13 10:14:32.134462671 +0800 +++ libomxvorbis-0.1/src/omx_vorbisdec_component.c 2011-04-13 10:15:35.133356538 +0800 @@ -57,7 +57,7 @@ return OMX_ErrorInsufficientResources; } } else { - DEBUG(DEB_LEV_FUNCTION_NAME, "In %s, Error Component %x Already Allocated\n", __func__, (int)openmaxStandComp->pComponentPrivate); + DEBUG(DEB_LEV_FUNCTION_NAME, "In %s, Error Component %p Already Allocated\n", __func__, openmaxStandComp->pComponentPrivate); } omx_vorbisdec_component_Private = openmaxStandComp->pComponentPrivate; @@ -282,14 +282,14 @@ ogg_int16_t convbuffer[4096]; - DEBUG(DEB_LEV_FULL_SEQ, "input buf %x filled len : %d \n", (int)inputbuffer->pBuffer, (int)inputbuffer->nFilledLen); + DEBUG(DEB_LEV_FULL_SEQ, "input buf %p filled len : %d \n", inputbuffer->pBuffer, (int)inputbuffer->nFilledLen); /** Fill up the current input buffer when a new buffer has arrived */ if(omx_vorbisdec_component_Private->isNewBuffer) { omx_vorbisdec_component_Private->inputCurrBuffer = inputbuffer->pBuffer; omx_vorbisdec_component_Private->inputCurrLength = inputbuffer->nFilledLen; omx_vorbisdec_component_Private->positionInOutBuf = 0; - DEBUG(DEB_LEV_SIMPLE_SEQ, "new -- input buf %x filled len : %d \n", (int)inputbuffer->pBuffer, (int)inputbuffer->nFilledLen); + DEBUG(DEB_LEV_SIMPLE_SEQ, "new -- input buf %p filled len : %d \n", inputbuffer->pBuffer, (int)inputbuffer->nFilledLen); /** for each new input buffer --- copy buffer content into into ogg sync state structure data */ vorbis_buffer = ogg_sync_buffer(&omx_vorbisdec_component_Private->oy, inputbuffer->nAllocLen); @@ -501,7 +501,7 @@ eos=1; } - DEBUG(DEB_LEV_FULL_SEQ, "One output buffer %x len=%d is full returning\n", (int)outputbuffer->pBuffer, (int)outputbuffer->nFilledLen); + DEBUG(DEB_LEV_FULL_SEQ, "One output buffer %p len=%d is full returning\n", outputbuffer->pBuffer, (int)outputbuffer->nFilledLen); } /** setting parameter values
signature.asc
Description: OpenPGP digital signature