Quoting Timo Rothenpieler (2024-12-12 20:55:27)
> From: Dennis Sädtler <[email protected]>
>
> Based on enhanced-rtmp v2 spec published by Veovera:
> https://veovera.github.io/enhanced-rtmp/docs/enhanced/enhanced-rtmp-v2
>
> Signed-off-by: Dennis Sädtler <[email protected]>
> ---
> libavformat/flvdec.c | 117 +++++++++++++++++++++++++++++++++++--------
> 1 file changed, 96 insertions(+), 21 deletions(-)
This could use some adapting to our coding style.
> @@ -1526,6 +1591,16 @@ retry_duration:
> flv->new_extradata[stream_type] = NULL;
> flv->new_extradata_size[stream_type] = 0;
> }
> + } else if (multitrack
> + && flv->mt_extradata_cnt > track_idx
> + && flv->mt_extradata[track_idx]) {
> + int ret = av_packet_add_side_data(pkt, AV_PKT_DATA_NEW_EXTRADATA,
> + flv->mt_extradata[track_idx],
> + flv->mt_extradata_sz[track_idx]);
> + if (ret >= 0) {
This should fail when ret < 0
--
Anton Khirnov
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".