1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-10-06 05:47:18 +02:00

libavformat/oggparseopus.c: Parse comments from secondary chained streams header packet.

This commit is contained in:
Romain Beauxis
2025-02-10 11:48:03 -06:00
committed by Yalda
parent 45d7d5d3e2
commit cb4052beae
2 changed files with 7 additions and 1 deletions

View File

@@ -154,6 +154,11 @@ static int opus_packet(AVFormatContext *avf, int idx)
}
if (os->psize > 8 && !memcmp(packet, "OpusTags", 8)) {
ret = ff_vorbis_update_metadata(avf, st, os->buf + os->pstart + 8,
os->psize - 8);
if (ret < 0)
return ret;
priv->need_comments = 0;
return 1;
}

View File

@@ -13,7 +13,8 @@ Stream ID: 0, frame PTS: 3528, metadata: N/A
Stream ID: 0, packet PTS: 4488, packet DTS: 4488
Stream ID: 0, frame PTS: 4488, metadata: N/A
Stream ID: 0, packet PTS: -312, packet DTS: -312
Stream ID: 0, frame PTS: -312, metadata: N/A
Stream ID: 0, new metadata: encoder=Lavc61.19.100 libopus:title=Second Stream
Stream ID: 0, frame PTS: -312, metadata: encoder=Lavc61.19.100 libopus:title=Second Stream
Stream ID: 0, packet PTS: 648, packet DTS: 648
Stream ID: 0, frame PTS: 648, metadata: N/A
Stream ID: 0, packet PTS: 1608, packet DTS: 1608