[FFmpeg-devel] [PATCH] lavu/ffmpeg_opt: Check return value of avcodec_find_encoder().
Michael Niedermayer
michaelni at gmx.at
Thu Sep 25 18:15:03 CEST 2014
On Thu, Sep 25, 2014 at 04:15:56PM +0200, Thilo Borgmann wrote:
> Hi,
>
> this was found when an ffserver is configured to output libvpx encoded video but
> the feeding ffmpeg has no libvpx support compiled in.
>
> -Thilo
> ffmpeg_opt.c | 4 ++++
> 1 file changed, 4 insertions(+)
> c465e140dab133ac657ea0bec857e36126096d89 0001-lavu-ffmpeg_opt-Check-return-value-of-avcodec_find_e.patch
> From 30adcf74e5eff6e48bd6fee7ad5d9bd68e5429ca Mon Sep 17 00:00:00 2001
> From: Thilo Borgmann <thilo.borgmann at mail.de>
> Date: Thu, 25 Sep 2014 16:10:58 +0200
> Subject: [PATCH] lavu/ffmpeg_opt: Check return value of
> avcodec_find_encoder().
>
> Prevents a segfault if a stream featuring a known but unavailable codec (like external lib codec) should be opened.
>
> Bug found by: Jonas Geistert <j.geistert at yahoo.de>
applied
thanks
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Asymptotically faster algorithms should always be preferred if you have
asymptotical amounts of data
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140925/cdf223e0/attachment.asc>
More information about the ffmpeg-devel
mailing list