[vlc-devel] [PATCH 19/21] Only set the buffer size if it is smaller than what the codec suggested
Martin Storsjö
martin at martin.st
Mon Sep 5 14:31:23 CEST 2011
I unfortunately don't remember the details of this patch, but
it was found during testing on HTC Sensation, retesting on such
a device will probably find out whether it still is necessary.
---
modules/codec/omxil/omxil.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/codec/omxil/omxil.cpp b/modules/codec/omxil/omxil.cpp
index b228824..63a7a84 100644
--- a/modules/codec/omxil/omxil.cpp
+++ b/modules/codec/omxil/omxil.cpp
@@ -407,7 +407,8 @@ static OMX_ERRORTYPE SetPortDefinition(decoder_t *p_dec, OmxPort *p_port,
&p_port->i_frame_size, &p_port->i_frame_stride,
&p_port->i_frame_stride_chroma_div );
def->format.video.nStride = p_port->i_frame_stride;
- def->nBufferSize = p_port->i_frame_size;
+ if (p_port->i_frame_size > def->nBufferSize)
+ def->nBufferSize = p_port->i_frame_size;
}
break;
--
1.7.2.5
More information about the vlc-devel
mailing list