Changes between Initial Version and Version 1 of Ticket #13186, comment 5
- Timestamp:
- Dec 13, 2017, 2:59:06 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #13186, comment 5
initial v1 1 1 Patch 005 - deprecated AVStream::codec and avcodec_close 2 3 '''There are some problems with this patch. It is trying to use AVCodecContext is some places where there is no codec and thus no AVCodecContext. I am reworking the patch. Check back for updates.''' 2 4 3 5 In the old method, ffmpeg automatically creates an AVCodecContext for every AVStream. The context can be opened and closed again any number of times. This is deprecated and the application code is now responsible for creating and freeing an AVCodecContext when needed. The AVCodecContext that the application creates may not be opened and closed more than once. The deprecated function avcodec_close must not be called on an AVCodecContext that you create, instead you have to free the AVCodecContext (using avcodec_free_context) and allocate a new one if you want to read the stream again.