Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* Re: [FFmpeg-devel] [PATCH 6/7] avformat: add s337m support in mpegts, wav and mxf stereo tracks
       [not found] ` <20241204141409.859670-7-ffnicolasg@sfr.fr>
@ 2025-02-05 14:47   ` Tomas Härdin
  2025-02-06 10:05     ` Nicolas Gaullier
  0 siblings, 1 reply; 2+ messages in thread
From: Tomas Härdin @ 2025-02-05 14:47 UTC (permalink / raw)
  To: FFmpeg development discussions and patches

ons 2024-12-04 klockan 15:14 +0100 skrev ffnicolasg@sfr.fr:
> --- a/libavformat/mxfdec.c
> +++ b/libavformat/mxfdec.c
> @@ -634,7 +634,7 @@ static int mxf_get_d10_aes3_packet(AVIOContext *pb, AVStream *st, AVPacket *pkt,
>      for (; end_ptr - buf_ptr >= st->codecpar->ch_layout.nb_channels * 4; ) {
>          for (int i = 0; i < st->codecpar->ch_layout.nb_channels; i++) {
>              uint32_t sample = bytestream_get_le32(&buf_ptr);
> -            if (st->codecpar->bits_per_coded_sample == 24)
> +            if (av_get_bits_per_sample(st->codecpar->codec_id) == 24)
>                  bytestream_put_le24(&data_ptr, (sample >> 4) & 0xffffff);
>              else
>                  bytestream_put_le16(&data_ptr, (sample >> 12) & 0xffff);
> @@ -3080,7 +3080,12 @@ static int mxf_parse_structural_metadata(MXFContext *mxf)
>              } else if (st->codecpar->codec_id == AV_CODEC_ID_AAC) {
>                  sti->need_parsing = AVSTREAM_PARSE_FULL;
>              }
> -            st->codecpar->bits_per_coded_sample = av_get_bits_per_sample(st->codecpar->codec_id);
> +            if (st->codecpar->codec_id == AV_CODEC_ID_PCM_S16LE
> +             || st->codecpar->codec_id == AV_CODEC_ID_PCM_S24LE) {
> +                FFStream *const sti = ffstream(st);
> +                sti->request_probe = AVPROBE_SCORE_EXTENSION;
> +                sti->need_parsing  = AVSTREAM_PARSE_FULL;
> +            }

Looks OK

Sorry for the late review

/Tomas
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [FFmpeg-devel] [PATCH 6/7] avformat: add s337m support in mpegts, wav and mxf stereo tracks
  2025-02-05 14:47   ` [FFmpeg-devel] [PATCH 6/7] avformat: add s337m support in mpegts, wav and mxf stereo tracks Tomas Härdin
@ 2025-02-06 10:05     ` Nicolas Gaullier
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Gaullier @ 2025-02-06 10:05 UTC (permalink / raw)
  To: FFmpeg development discussions and patches

>De : ffmpeg-devel <ffmpeg-devel-bounces@ffmpeg.org> de la part de Tomas Härdin <git@haerdin.se>
>Envoyé : mercredi 5 février 2025 15:47
>Objet : Re: [FFmpeg-devel] [PATCH 6/7] avformat: add s337m support in mpegts, wav and mxf stereo tracks
>
>Looks OK
>
>Sorry for the late review
>
>/Tomas

Thanks to you, good to know; nevertheless, the patch serie is shelved because of red flags, so there will not be any follow up on the ml at the moment.

Nicolas
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-02-06 10:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20241204141409.859670-1-ffnicolasg@sfr.fr>
     [not found] ` <20241204141409.859670-7-ffnicolasg@sfr.fr>
2025-02-05 14:47   ` [FFmpeg-devel] [PATCH 6/7] avformat: add s337m support in mpegts, wav and mxf stereo tracks Tomas Härdin
2025-02-06 10:05     ` Nicolas Gaullier

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git