!184 fix muxer loci order

Merge pull request !184 from Bojack/muxerFix
This commit is contained in:
openharmony_ci 2024-04-18 13:02:48 +00:00 committed by Gitee
commit 7cdca4f14a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -3800,8 +3800,14 @@ static int mov_write_loci_tag(AVFormatContext *s, AVIOContext *pb)
avio_wb16(pb, lang);
avio_write(pb, place, strlen(place) + 1);
avio_w8(pb, 0); /* role of place (0 == shooting location, 1 == real location, 2 == fictional location) */
#ifdef OHOS_MOOV_LEVEL_META
/* fix save order, refer to 3GPP TS 26.244, ffmpeg7.0*/
avio_wb32(pb, longitude_fix);
avio_wb32(pb, latitude_fix);
#else
avio_wb32(pb, latitude_fix);
avio_wb32(pb, longitude_fix);
#endif
avio_wb32(pb, altitude_fix);
avio_write(pb, astronomical_body, strlen(astronomical_body) + 1);
avio_w8(pb, 0); /* additional notes, null terminated string */