OSDN Git Service

id3v2: strdup the genre name explicitly.
authorClément Bœsch <ubitux@gmail.com>
Sat, 12 May 2012 20:39:30 +0000 (22:39 +0200)
committerAnton Khirnov <anton@khirnov.net>
Mon, 17 Sep 2012 13:48:20 +0000 (15:48 +0200)
commit049ce4facbd0565baeec628083ceacb5035295d4
tree294ea7157cd745f302bc42d6aa13d6805be0ef05
parentffdd2e9144f45082ce31f93c20136ade6ed51a54
id3v2: strdup the genre name explicitly.

It would have been done anyway in the av_dict_set() call.

This simplifies the code and avoid a warning because of assigning a
const string from ff_id3v1_genre_str to a non-const variable.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavformat/id3v2.c