-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a possible crash in avformat probe (#944)
* Fix a possible crash in avformat probe Probe was accessing the cached avformat context from a store pointer (self->child) rather than through the cache. This can result in accesssing released memory if the cache deleted the context. The context pointer should not be saved at all and should only be accessed through the cache system. This change includes a rewrite of the video index change detection so that probe() will not have to access the avformat context at all. This also adds an optimization that if metadata is loaded from XML, and nothing else has changed, then the probe can be skipped. * Use meta.media.nb_streams instead of meta.media.stream.0.codec Stream 0 may not exist. And nb_streams should always be present
- Loading branch information
Showing
1 changed file
with
27 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters