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

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Sat Jan 31 21:25:44 CET 2015


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-examples-demuxing_decoding-set-stream_idx-in-open_co.patch
Type: text/x-diff
Size: 1585 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150131/2d4e51e2/attachment.bin>


More information about the ffmpeg-devel mailing list