[FFmpeg-devel] [PATCH]lavc/sheervideo: Increase av_get_codec_tag_string() input buffer size.

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Oct 18 16:04:09 EEST 2016


Hi!

Attached patch increases the size of the input buffer for 
av_get_codec_tag_string() to 32, typically used in FFmpeg.

Carl Eugen
-------------- next part --------------
From 79eff70eb71106b8b2330f5d1d119d40775f1f77 Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <cehoyos at ag.or.at>
Date: Tue, 18 Oct 2016 14:53:30 +0200
Subject: [PATCH] lavc/sheervideo: Increase av_get_codec_tag_string() input
 buffer size.

A size of 32 is typically used.
---
 libavcodec/sheervideo.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/sheervideo.c b/libavcodec/sheervideo.c
index f8490c9..e8f008b 100644
--- a/libavcodec/sheervideo.c
+++ b/libavcodec/sheervideo.c
@@ -2879,7 +2879,7 @@ static int decode_frame(AVCodecContext *avctx,
     AVFrame *p = data;
     GetBitContext gb;
     unsigned format;
-    char format_str[16];
+    char format_str[32];
     int ret;
 
     if (avpkt->size <= 20)
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list