mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2025-02-07 21:07:33 +00:00
update libavformat/mov.c.
Signed-off-by: yj <yujie57@huawei.com>
This commit is contained in:
parent
f7b34d16b9
commit
eec2959c73
@ -7780,13 +7780,11 @@ static int mov_read_gnre(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
||||
return ret;
|
||||
}
|
||||
for (i = 0; i < atom.size; ++i) {
|
||||
if (0 == genre[i]) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
if (genre[i] != 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
char* activeGenre = genre + i;
|
||||
av_dict_set(&c->fc->metadata, "genre", activeGenre, AV_DICT_DONT_OVERWRITE);
|
||||
av_dict_set(&c->fc->metadata, "genre", genre + i, AV_DICT_DONT_OVERWRITE);
|
||||
av_freep(&genre);
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user