diff mbox series

[FFmpeg-devel,2/2] Fix missing PCM sample size option when it is used as the lone option for DirectShow audio capture

Message ID CAELR-fCuunGLx5W0Q6Rn7uJXdHbr-=h-MFB4sCZuQY=O6kS04A@mail.gmail.com
State New
Headers show
Series [FFmpeg-devel,1/2] Use WAVEFORMATEX from AM_MEDIA_TYPE for describing device capabilities. (Fixes #9420)
Related show

Checks

Context Check Description
andriy/configurex86 warning Failed to apply patch
andriy/configureppc warning Failed to apply patch

Commit Message

Brad Isbell Nov. 4, 2021, 2:09 a.m. UTC
From 25e34ef9f995afffe67e519bb6f03a750aa09ae2 Mon Sep 17 00:00:00 2001
From: Brad Isbell <brad@audiopump.co>
Date: Wed, 3 Nov 2021 20:38:59 -0500
Subject: [PATCH 2/2] Fix missing PCM sample size option when it is used as
the
 lone option for DirectShow audio capture

Signed-off-by: Brad Isbell <brad@audiopump.co>
---
 libavdevice/dshow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-                  || (devtype == AudioDevice && (ctx->channels ||
ctx->sample_rate));
+                  || (devtype == AudioDevice && (ctx->channels ||
ctx->sample_rate || ctx->sample_size));
     int format_set = 0;
     int should_show_properties = (devtype == VideoDevice) ?
ctx->show_video_device_dialog : ctx->show_audio_device_dialog;

Comments

Roger Pack Nov. 4, 2021, 4:41 a.m. UTC | #1
I have looked at these two patches and they look good to me, if
anybody could commit them for me, that would be great.

On Wed, Nov 3, 2021 at 8:10 PM Brad Isbell <brad@audiopump.co> wrote:
>
> From 25e34ef9f995afffe67e519bb6f03a750aa09ae2 Mon Sep 17 00:00:00 2001
> From: Brad Isbell <brad@audiopump.co>
> Date: Wed, 3 Nov 2021 20:38:59 -0500
> Subject: [PATCH 2/2] Fix missing PCM sample size option when it is used as
> the
>  lone option for DirectShow audio capture
>
> Signed-off-by: Brad Isbell <brad@audiopump.co>
> ---
>  libavdevice/dshow.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
> index 5c1e494..e313c9a 100644
> --- a/libavdevice/dshow.c
> +++ b/libavdevice/dshow.c
> @@ -569,7 +569,7 @@ dshow_cycle_pins(AVFormatContext *avctx, enum
> dshowDeviceType devtype,
>                                                  (ctx->requested_width &&
> ctx->requested_height) ||
>                                                   ctx->pixel_format !=
> AV_PIX_FMT_NONE ||
>                                                   ctx->video_codec_id !=
> AV_CODEC_ID_RAWVIDEO))
> -                  || (devtype == AudioDevice && (ctx->channels ||
> ctx->sample_rate));
> +                  || (devtype == AudioDevice && (ctx->channels ||
> ctx->sample_rate || ctx->sample_size));
>      int format_set = 0;
>      int should_show_properties = (devtype == VideoDevice) ?
> ctx->show_video_device_dialog : ctx->show_audio_device_dialog;
>
> --
> 2.32.0.windows.1
> _______________________________________________
> 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".
Michael Niedermayer Nov. 4, 2021, 10:53 a.m. UTC | #2
On Wed, Nov 03, 2021 at 10:41:24PM -0600, Roger Pack wrote:
> I have looked at these two patches and they look good to me, if
> anybody could commit them for me, that would be great.

The patches are corrupted
Applying: Use WAVEFORMATEX from AM_MEDIA_TYPE for describing device capabilities. (Fixes #9420)
error: corrupt patch at line 10
error: could not build fake ancestor
Patch failed at 0001 Use WAVEFORMATEX from AM_MEDIA_TYPE for describing device capabilities. (Fixes #9420)

[...]
Brad Isbell Nov. 4, 2021, 5:21 p.m. UTC | #3
Re-sending with correct line endings.  Thanks!



From 25e34ef9f995afffe67e519bb6f03a750aa09ae2 Mon Sep 17 00:00:00 2001
From: Brad Isbell <brad@audiopump.co>
Date: Wed, 3 Nov 2021 20:38:59 -0500
Subject: [PATCH 2/2] Fix missing PCM sample size option when it is used as the
 lone option for DirectShow audio capture

Signed-off-by: Brad Isbell <brad@audiopump.co>
---
 libavdevice/dshow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
index 5c1e494..e313c9a 100644
--- a/libavdevice/dshow.c
+++ b/libavdevice/dshow.c
@@ -569,7 +569,7 @@ dshow_cycle_pins(AVFormatContext *avctx, enum
dshowDeviceType devtype,
                                                 (ctx->requested_width
&& ctx->requested_height) ||
                                                  ctx->pixel_format !=
AV_PIX_FMT_NONE ||
                                                  ctx->video_codec_id
!= AV_CODEC_ID_RAWVIDEO))
-                  || (devtype == AudioDevice && (ctx->channels ||
ctx->sample_rate));
+                  || (devtype == AudioDevice && (ctx->channels ||
ctx->sample_rate || ctx->sample_size));
     int format_set = 0;
     int should_show_properties = (devtype == VideoDevice) ?
ctx->show_video_device_dialog : ctx->show_audio_device_dialog;
Brad Isbell Nov. 4, 2021, 6:03 p.m. UTC | #4
Brad Isbell // AudioPump, Inc.
brad@audiopump.co
Skype: bradisbell
Phone: +1 312-488-4680


On Thu, Nov 4, 2021 at 12:21 PM Brad Isbell <brad@audiopump.co> wrote:
>
> Re-sending with correct line endings.  Thanks!
>
>
>
> From 25e34ef9f995afffe67e519bb6f03a750aa09ae2 Mon Sep 17 00:00:00 2001
> From: Brad Isbell <brad@audiopump.co>
> Date: Wed, 3 Nov 2021 20:38:59 -0500
> Subject: [PATCH 2/2] Fix missing PCM sample size option when it is used as the
>  lone option for DirectShow audio capture
>
> Signed-off-by: Brad Isbell <brad@audiopump.co>
> ---
>  libavdevice/dshow.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
> index 5c1e494..e313c9a 100644
> --- a/libavdevice/dshow.c
> +++ b/libavdevice/dshow.c
> @@ -569,7 +569,7 @@ dshow_cycle_pins(AVFormatContext *avctx, enum
> dshowDeviceType devtype,
>                                                  (ctx->requested_width
> && ctx->requested_height) ||
>                                                   ctx->pixel_format !=
> AV_PIX_FMT_NONE ||
>                                                   ctx->video_codec_id
> != AV_CODEC_ID_RAWVIDEO))
> -                  || (devtype == AudioDevice && (ctx->channels ||
> ctx->sample_rate));
> +                  || (devtype == AudioDevice && (ctx->channels ||
> ctx->sample_rate || ctx->sample_size));
>      int format_set = 0;
>      int should_show_properties = (devtype == VideoDevice) ?
> ctx->show_video_device_dialog : ctx->show_audio_device_dialog;
>
> --
> 2.32.0.windows.1
>
>
>
> On Thu, Nov 4, 2021 at 5:53 AM Michael Niedermayer
> <michael@niedermayer.cc> wrote:
> >
> > On Wed, Nov 03, 2021 at 10:41:24PM -0600, Roger Pack wrote:
> > > I have looked at these two patches and they look good to me, if
> > > anybody could commit them for me, that would be great.
> >
> > The patches are corrupted
> > Applying: Use WAVEFORMATEX from AM_MEDIA_TYPE for describing device capabilities. (Fixes #9420)
> > error: corrupt patch at line 10
> > error: could not build fake ancestor
> > Patch failed at 0001 Use WAVEFORMATEX from AM_MEDIA_TYPE for describing device capabilities. (Fixes #9420)
> >
> > [...]
> > --
> > Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
> >
> > The bravest are surely those who have the clearest vision
> > of what is before them, glory and danger alike, and yet
> > notwithstanding go out to meet it. -- Thucydides
> > _______________________________________________
> > 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".
From 25e34ef9f995afffe67e519bb6f03a750aa09ae2 Mon Sep 17 00:00:00 2001
From: Brad Isbell <brad@audiopump.co>
Date: Wed, 3 Nov 2021 20:38:59 -0500
Subject: [PATCH 2/2] Fix missing PCM sample size option when it is used as the
 lone option for DirectShow audio capture

Signed-off-by: Brad Isbell <brad@audiopump.co>
---
 libavdevice/dshow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
index 5c1e494..e313c9a 100644
--- a/libavdevice/dshow.c
+++ b/libavdevice/dshow.c
@@ -569,7 +569,7 @@ dshow_cycle_pins(AVFormatContext *avctx, enum dshowDeviceType devtype,
                                                 (ctx->requested_width && ctx->requested_height) ||
                                                  ctx->pixel_format != AV_PIX_FMT_NONE ||
                                                  ctx->video_codec_id != AV_CODEC_ID_RAWVIDEO))
-                  || (devtype == AudioDevice && (ctx->channels || ctx->sample_rate));
+                  || (devtype == AudioDevice && (ctx->channels || ctx->sample_rate || ctx->sample_size));
     int format_set = 0;
     int should_show_properties = (devtype == VideoDevice) ? ctx->show_video_device_dialog : ctx->show_audio_device_dialog;
Michael Niedermayer Nov. 5, 2021, 9:40 p.m. UTC | #5
On Thu, Nov 04, 2021 at 01:03:54PM -0500, Brad Isbell wrote:
> Brad Isbell // AudioPump, Inc.
> brad@audiopump.co
> Skype: bradisbell
> Phone: +1 312-488-4680
> 
> 
> On Thu, Nov 4, 2021 at 12:21 PM Brad Isbell <brad@audiopump.co> wrote:
> >

> > Re-sending with correct line endings.  Thanks!

[...]
> > > On Wed, Nov 03, 2021 at 10:41:24PM -0600, Roger Pack wrote:
> > > > I have looked at these two patches and they look good to me, if
> > > > anybody could commit them for me, that would be great.

ok will apply
thx

[...]
diff mbox series

Patch

diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
index 5c1e494..e313c9a 100644
--- a/libavdevice/dshow.c
+++ b/libavdevice/dshow.c
@@ -569,7 +569,7 @@  dshow_cycle_pins(AVFormatContext *avctx, enum
dshowDeviceType devtype,
                                                 (ctx->requested_width &&
ctx->requested_height) ||
                                                  ctx->pixel_format !=
AV_PIX_FMT_NONE ||
                                                  ctx->video_codec_id !=
AV_CODEC_ID_RAWVIDEO))