[FFmpeg-devel] [PATCH] lavc/mediacodecdec_h2645: fix nalu data_size type

Matthieu Bouron matthieu.bouron at gmail.com
Fri Sep 30 19:34:11 EEST 2016


From: Matthieu Bouron <matthieu.bouron at stupeflix.com>

---
 libavcodec/mediacodecdec_h2645.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/mediacodecdec_h2645.c b/libavcodec/mediacodecdec_h2645.c
index 122be88..9f8110c 100644
--- a/libavcodec/mediacodecdec_h2645.c
+++ b/libavcodec/mediacodecdec_h2645.c
@@ -154,7 +154,7 @@ static int h264_set_extradata(AVCodecContext *avctx, FFAMediaFormat *format)
 
     if (pps && sps) {
         uint8_t *data = NULL;
-        size_t data_size = 0;
+        int data_size = 0;
 
         if ((ret = h2645_ps_to_nalu(sps->data, sps->data_size, &data, &data_size)) < 0) {
             goto done;
-- 
2.10.0



More information about the ffmpeg-devel mailing list