[vlc-commits] mediacodec: ndk: use AMediaCodecBufferInfo size

Thomas Guillem git at videolan.org
Mon Jul 27 10:39:21 CEST 2015


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Jul 27 10:36:06 2015 +0200| [c78f1106ae91dca6b75a35337fda01ad658d8ff2] | committer: Thomas Guillem

mediacodec: ndk: use AMediaCodecBufferInfo size

The buffer size can be bigger than valid data size.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c78f1106ae91dca6b75a35337fda01ad658d8ff2
---

 modules/codec/omxil/mediacodec_ndk.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/omxil/mediacodec_ndk.c b/modules/codec/omxil/mediacodec_ndk.c
index e434aa0..96ffb42 100644
--- a/modules/codec/omxil/mediacodec_ndk.c
+++ b/modules/codec/omxil/mediacodec_ndk.c
@@ -447,7 +447,7 @@ static int GetOutput(mc_api *api, mc_api_out *p_out, mtime_t i_timeout)
                 return VLC_EGENERIC;
             }
             p_out->u.buf.p_ptr = p_mc_buf + info.offset;
-            p_out->u.buf.i_size = i_mc_size;
+            p_out->u.buf.i_size = info.size;
         }
         return 1;
     }



More information about the vlc-commits mailing list