[FFmpeg-devel] [PATCH] Fixing rare dshow input crash

Paul B Mahol onemda at gmail.com
Wed Jan 29 10:39:48 EET 2020


Please incorporate this change in previous bigger patch. It is ready for merge.

On 1/29/20, Roger Pack <rogerdpack2 at gmail.com> wrote:
> Good catch.
> Or maybe this?
>
> diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
> index d7f5bd7..96e4374 100644
> --- a/libavdevice/dshow.c
> +++ b/libavdevice/dshow.c
> @@ -453,6 +453,7 @@ next:
>          if (type->pbFormat)
>              CoTaskMemFree(type->pbFormat);
>          CoTaskMemFree(type);
> +        type = NULL;
>      }
>  end:
>      IAMStreamConfig_Release(config);
>
> On Thu, Sep 5, 2019 at 2:56 PM Alexey Potakhov <alex at potahov.com> wrote:
>>
>> re-sending without tabs.
>>
>> On Wed, Sep 4, 2019 at 6:22 PM Carl Eugen Hoyos <ceffmpeg at gmail.com>
>> wrote:
>> >
>> > Am Do., 5. Sept. 2019 um 00:08 Uhr schrieb Alexey Potakhov
>> > <alex at potahov.com>:
>> >
>> > > In some rare cases when IAMStreamConfig_GetStreamCaps returns
>> > > an error avformat_open_input() crashes with access violation.
>> >
>> > Tabs are rejected by our repository, please remove them and resend.
>> >
>> > Carl Eugen
>> > _______________________________________________
>> > ffmpeg-devel mailing list
>> > ffmpeg-devel at ffmpeg.org
>> > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>> >
>> > To unsubscribe, visit link above, or email
>> > ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
>> _______________________________________________
>> ffmpeg-devel mailing list
>> ffmpeg-devel at ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>>
>> To unsubscribe, visit link above, or email
>> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-devel mailing list