summaryrefslogtreecommitdiff
path: root/doc/examples/demuxing_decoding.c
Commit message (Collapse)AuthorAge
* examples: Don't call deprecated functions which don't do anythingMark Thompson2018-02-09
|
* doc/examples/demuxing_decoding: Drop AVFrame->pts useMichael Niedermayer2016-10-18
| | | | | | | This code is not correct for git master Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* examples/demuxing_decoding: convert to codecparJames Almer2016-08-17
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* Replace remaining occurances of av_free_packet with av_packet_unrefHendrik Leppkes2015-10-27
|
* doc/examples/demuxing_decoding: simplify api_mode to refcountClément Bœsch2015-09-06
| | | | This finalizes the quick cleanup of a753e6c9f508fd48a0f34438bcdce87c826779b9.
* doc/examples/demuxing_decoding: Drop old api mode, because the code fails to ↵Michael Niedermayer2015-09-05
| | | | | | build otherwise Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* examples/demuxing_decoding: use properties from frame instead of video_dec_ctxAndreas Cadhalpun2015-06-15
| | | | | | | | | This is more robust. And only check if there is actually a frame returned. Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* examples/demuxing_decoding: abort decoding when width, height or pix_fmt changeAndreas Cadhalpun2015-02-10
| | | | | | | | | | | | | | This is necessary, because avcodec_decode_video2 can change width, height and/or pixel format of the AVCodecContext. Since video_dst_data and video_dst_linesize are not updated by calling av_image_alloc again, av_image_copy[_plane] asserts, because the destination buffer is too small. In this case, creating a useable rawvideo is not possible anyway, since it has fixed width/height/pix_fmt. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* examples/demuxing_decoding: set stream_idx in open_codec_context only if no ↵Andreas Cadhalpun2015-01-31
| | | | | | | error occured Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* doc: fix typocompn2014-03-07
|
* doc/examples: remove pathes from doxy examplesMichael Niedermayer2014-02-17
| | | | | | | This makes the examples page less cluttered Reviewed-by: Clément Bœsch <u@pkh.me> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* examples/demuxing_decoding: print the decoding error when it happens.Clément Bœsch2013-12-13
|
* examples/demuxing_decoding: return error when no codec foundEven Wiik Thomassen2013-12-13
| | | | | | | | | | | | The open_codec_context function, when it fails to find a codec, now return AVERROR(EINVAL) to signal an error. Before it would return the stream index, which was always >= 0, and continue as if a codec was found. This change make it fail faster, instead of repeated failed tries to decode frames with no codec. Signed-off-by: Even Wiik Thomassen <e.thomassen@sportradar.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* doc/examples: do not check NULL values for avcodec_close()Stefano Sabatini2013-11-21
| | | | avcodec_close() does nothing in case the argument is NULL. Simplify.
* doc/examples: rename demuxing to demuxing_decoding.Clément Bœsch2013-11-04
That example shows how the decoding process works, not only the demuxing.