We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3423a68 commit 9da0594Copy full SHA for 9da0594
libavformat/iamfenc.c
@@ -278,6 +278,16 @@ static int iamf_write_packet(AVFormatContext *s, AVPacket *pkt)
278
int dyn_size, type = st->id <= 17 ? st->id + IAMF_OBU_IA_AUDIO_FRAME_ID0 : IAMF_OBU_IA_AUDIO_FRAME;
279
int ret;
280
281
+ if (!pkt->size) {
282
+ uint8_t *new_extradata = av_packet_get_side_data(pkt, AV_PKT_DATA_NEW_EXTRADATA, NULL);
283
+
284
+ if (!new_extradata)
285
+ return AVERROR_INVALIDDATA;
286
287
+ // TODO: update FLAC Streaminfo on seekable output
288
+ return 0;
289
+ }
290
291
if (s->nb_stream_groups && st->id == c->first_stream_id) {
292
AVIAMFParamDefinition *mix =
293
(AVIAMFParamDefinition *)av_packet_get_side_data(pkt, AV_PKT_DATA_IAMF_MIX_GAIN_PARAM, NULL);
0 commit comments