diff options
author | John Stebbins <jstebbins@jetheaddev.com> | 2018-08-27 22:57:07 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2018-09-09 01:08:34 +0300 |
commit | c9a992d931440f87882771532b7178477c5b0ebe (patch) | |
tree | 283c4453ebb3c37031f07443a6f2b1e843b8af82 /libavformat/mov.c | |
parent | 6e15495bcb2004e4e648160b22383ef72cc0e14c (diff) |
lavf/mov: add AVCodecTag entry for GoPro metadata
This allows for validation of the track type
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r-- | libavformat/mov.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index d922e0f173..aa8022ae52 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -2034,6 +2034,8 @@ static int mov_codec_id(AVStream *st, uint32_t format) id = ff_codec_get_id(ff_codec_movsubtitle_tags, format); if (id > 0) st->codecpar->codec_type = AVMEDIA_TYPE_SUBTITLE; + else + id = ff_codec_get_id(ff_codec_movdata_tags, format); } } @@ -2507,6 +2509,7 @@ int ff_mov_read_stsd_entries(MOVContext *c, AVIOContext *pb, int entries) mov_parse_stsd_subtitle(c, pb, st, sc, size - (avio_tell(pb) - start_pos)); } else { + st->codecpar->codec_id = id; ret = mov_parse_stsd_data(c, pb, st, sc, size - (avio_tell(pb) - start_pos)); if (ret < 0) |