[FFmpeg-devel] [PATCH 2/2] examples/demuxing_decoding: set stream_idx in open_codec_context only if no error occured

Michael Niedermayer michaelni at gmx.at
Sat Jan 31 22:05:08 CET 2015


On Sat, Jan 31, 2015 at 09:25:44PM +0100, Andreas Cadhalpun wrote:
> Hi,
> 
> the demuxing_decoding example sets the stream_idx even if it fails
> find a codec for that streams. This leads to a crash, when trying to
> decode the stream.
> 
> Attached patch fixes this.
> 
> Best regards,
> Andreas

>  demuxing_decoding.c |    7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
> d273429b7aa2e30049a79262c9f3485580b8286e  0002-examples-demuxing_decoding-set-stream_idx-in-open_co.patch
> From 387b8eb9c1a45bd93b7dde68669426e9ca42525a Mon Sep 17 00:00:00 2001
> From: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>
> Date: Sat, 31 Jan 2015 21:11:38 +0100
> Subject: [PATCH 2/2] examples/demuxing_decoding: set stream_idx in
>  open_codec_context only if no error occured

applied

thanks

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The educated differ from the uneducated as much as the living from the
dead. -- Aristotle 
-------------- 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/20150131/ea1a8eb6/attachment.asc>


More information about the ffmpeg-devel mailing list