Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH] fftools/ffplay: use correct buffersink channel layout parameters
@ 2024-03-18 20:20 Marton Balint
  2024-03-18 20:31 ` James Almer
  0 siblings, 1 reply; 3+ messages in thread
From: Marton Balint @ 2024-03-18 20:20 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: Marton Balint

Regression since 0995e1f1b31f6e937a1b527407ed3e850f138098.

Signed-off-by: Marton Balint <cus@passwd.hu>
---
 fftools/ffplay.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fftools/ffplay.c b/fftools/ffplay.c
index 09b4846deb..fcd1319ce7 100644
--- a/fftools/ffplay.c
+++ b/fftools/ffplay.c
@@ -2040,6 +2040,8 @@ static int configure_audio_filters(VideoState *is, const char *afilters, int for
         goto end;
 
     if (force_output_format) {
+        av_bprint_clear(&bp);
+        av_channel_layout_describe_bprint(&is->audio_tgt.ch_layout, &bp);
         sample_rates   [0] = is->audio_tgt.freq;
         if ((ret = av_opt_set_int(filt_asink, "all_channel_counts", 0, AV_OPT_SEARCH_CHILDREN)) < 0)
             goto end;
-- 
2.35.3

_______________________________________________
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] 3+ messages in thread

* Re: [FFmpeg-devel] [PATCH] fftools/ffplay: use correct buffersink channel layout parameters
  2024-03-18 20:20 [FFmpeg-devel] [PATCH] fftools/ffplay: use correct buffersink channel layout parameters Marton Balint
@ 2024-03-18 20:31 ` James Almer
  2024-03-19 19:47   ` Marton Balint
  0 siblings, 1 reply; 3+ messages in thread
From: James Almer @ 2024-03-18 20:31 UTC (permalink / raw)
  To: FFmpeg development discussions and patches

LGTM if tested. Sorry for the breakage.
Please backport it to all the relevant release branches too.

On Mon, Mar 18, 2024 at 5:20 PM Marton Balint <cus@passwd.hu> wrote:

> Regression since 0995e1f1b31f6e937a1b527407ed3e850f138098.
>
> Signed-off-by: Marton Balint <cus@passwd.hu>
> ---
>  fftools/ffplay.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/fftools/ffplay.c b/fftools/ffplay.c
> index 09b4846deb..fcd1319ce7 100644
> --- a/fftools/ffplay.c
> +++ b/fftools/ffplay.c
> @@ -2040,6 +2040,8 @@ static int configure_audio_filters(VideoState *is,
> const char *afilters, int for
>          goto end;
>
>      if (force_output_format) {
> +        av_bprint_clear(&bp);
> +        av_channel_layout_describe_bprint(&is->audio_tgt.ch_layout, &bp);
>          sample_rates   [0] = is->audio_tgt.freq;
>          if ((ret = av_opt_set_int(filt_asink, "all_channel_counts", 0,
> AV_OPT_SEARCH_CHILDREN)) < 0)
>              goto end;
> --
> 2.35.3
>
> _______________________________________________
> 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".
>
_______________________________________________
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] 3+ messages in thread

* Re: [FFmpeg-devel] [PATCH] fftools/ffplay: use correct buffersink channel layout parameters
  2024-03-18 20:31 ` James Almer
@ 2024-03-19 19:47   ` Marton Balint
  0 siblings, 0 replies; 3+ messages in thread
From: Marton Balint @ 2024-03-19 19:47 UTC (permalink / raw)
  To: FFmpeg development discussions and patches



On Mon, 18 Mar 2024, James Almer wrote:

> LGTM if tested. Sorry for the breakage.
> Please backport it to all the relevant release branches too.

OK, will apply.

Thanks,
Marton

>
> On Mon, Mar 18, 2024 at 5:20 PM Marton Balint <cus@passwd.hu> wrote:
>
>> Regression since 0995e1f1b31f6e937a1b527407ed3e850f138098.
>>
>> Signed-off-by: Marton Balint <cus@passwd.hu>
>> ---
>>  fftools/ffplay.c | 2 ++
>>  1 file changed, 2 insertions(+)
>>
>> diff --git a/fftools/ffplay.c b/fftools/ffplay.c
>> index 09b4846deb..fcd1319ce7 100644
>> --- a/fftools/ffplay.c
>> +++ b/fftools/ffplay.c
>> @@ -2040,6 +2040,8 @@ static int configure_audio_filters(VideoState *is,
>> const char *afilters, int for
>>          goto end;
>>
>>      if (force_output_format) {
>> +        av_bprint_clear(&bp);
>> +        av_channel_layout_describe_bprint(&is->audio_tgt.ch_layout, &bp);
>>          sample_rates   [0] = is->audio_tgt.freq;
>>          if ((ret = av_opt_set_int(filt_asink, "all_channel_counts", 0,
>> AV_OPT_SEARCH_CHILDREN)) < 0)
>>              goto end;
>> --
>> 2.35.3
>>
>> _______________________________________________
>> 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".
>>
> _______________________________________________
> 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".
_______________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2024-03-19 19:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-18 20:20 [FFmpeg-devel] [PATCH] fftools/ffplay: use correct buffersink channel layout parameters Marton Balint
2024-03-18 20:31 ` James Almer
2024-03-19 19:47   ` Marton Balint

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