aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2014-07-29 21:13:10 +0200
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2014-07-30 20:25:29 +0200
commit1c84aad718f0b2a6c8bd318ebc08240dcbe5ae8b (patch)
tree78935c50373b1f3b13acd9d03cb6f7f2c9fa2789
parent04aec74f45692b38f80778c740310daa02cb2caf (diff)
downloadffmpeg-1c84aad718f0b2a6c8bd318ebc08240dcbe5ae8b.tar.gz
movdec: remove nonsensical snprintf.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
-rw-r--r--libavformat/mov.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index cfe76cde4b..ab859181f5 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -119,15 +119,13 @@ static int mov_metadata_gnre(MOVContext *c, AVIOContext *pb,
unsigned len, const char *key)
{
short genre;
- char buf[20];
avio_r8(pb); // unknown
genre = avio_r8(pb);
if (genre < 1 || genre > ID3v1_GENRE_MAX)
return 0;
- snprintf(buf, sizeof(buf), "%s", ff_id3v1_genre_str[genre-1]);
- av_dict_set(&c->fc->metadata, key, buf, 0);
+ av_dict_set(&c->fc->metadata, key, ff_id3v1_genre_str[genre-1], 0);
return 0;
}