[FFmpeg-cvslog] avformat/cinedec: remove redundant zero termination

Michael Niedermayer git at videolan.org
Sat Apr 5 23:13:11 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Apr  5 23:00:23 2014 +0200| [47b03415f3196979839ea14f3a9625b43e232173] | committer: Michael Niedermayer

avformat/cinedec: remove redundant zero termination

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=47b03415f3196979839ea14f3a9625b43e232173
---

 libavformat/cinedec.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/libavformat/cinedec.c b/libavformat/cinedec.c
index d3e3e1b..5e16032 100644
--- a/libavformat/cinedec.c
+++ b/libavformat/cinedec.c
@@ -75,7 +75,6 @@ static int set_metadata_int(AVDictionary **dict, const char *key, int value)
     if (value) {
         char buf[64];
         snprintf(buf, sizeof(buf), "%i", value);
-        buf[sizeof(buf) - 1] = 0;
         return av_dict_set(dict, key, buf, 0);
     }
     return 0;



More information about the ffmpeg-cvslog mailing list