- Notifications
You must be signed in to change notification settings - Fork50
Fix memory leaks#282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
valnoel merged 58 commits intoavTranscoder:developfromcchampet:fix_memoryLeakWhenGenerateDataNov 3, 2016
Uh oh!
There was an error while loading.Please reload this page.
Merged
Fix memory leaks#282
Changes fromall commits
Commits
Show all changes
58 commits Select commitHold shift + click to select a range
88af737
AudioFrame: fix memory leak when allocating a new audio buffer
8d0ac3f
VideoFrame: fix memory leak when allocating a new picture
aade71f
Frame: add isRefCounted method
58cfca0
Frame: rename clear method to unrefFrame
6e4d7d7
Frame: add freeAVFrame private method
6954832
ICodec: refactor how to free the AVCodecContext
0654fa8
Frame: remove method to ref/unref an other frame
83a63a6
FormatContext: fix destructor by freeing the streams added
c2edefe
StreamTranscoder: skip filtering step if there is no filters
8635b3b
VideoProperties: refactor how to decode the first frames to get info
6f87435
Video/Audio frames: data buffer needs to be allocated manually
5d0f51f
Video/Audio transform: add check before converting the data
fb44ea5
StreamTranscoder: fix process of generated streams
ebd558d
Video/Audio generators: fix data generated after a transcoded stream
53eff1d
Video/Audio frames: refactor how to construct frames
7e20933
Video/Audio frames: remove desc method
5c788e3
decoded data: raise a bad_alloc when faling to allocate the requested…
8d4cce5
coded data: raise a bad_alloc when faling to allocate the requested s…
c662a70
ICodec: raise a bad_alloc when faling to allocate the requested space
6847185
decoded data: rename class Frame to IFrame
2a61683
frames: define assign method in the IFrame based class
a92879d
IFrame: fix memory leak when calling assignValue
8e2818f
StreamTranscoder: fix seg fault when using a decoder to lengthen a re…
7ff35fc
AudioDecoder: fix memory leak in demultiplexing cases
dfaf987
AudioDecoder: refactor how to decodeNextFrame in case of demultiplexing
b460fce
AudioFrame: add doc to warn about setNbSamplesPerChannel method
87d11c4
StreamTranscoder: fix video frame to get filtered data when transcoding
d86ccf3
StreamTranscoder: fix process with a positive offset
aa9bba3
VideoProperties: fix seg fault when analysing the first GOP
9203a71
filters: refactor how to allocate/free the objects
a5ad30e
Video/Audio frames: fix seg fault when process a graph of filters
9c02a02
readers: fix allocation of buffer of decoded data
64d74cf
AudioFrame: add getBytesPerSample method
abb78c0
frames: remove default copy constructors and assignment operator
a95aa18
pyTest: fix set video/audio frame
ccdbbea
FormatContext: fix memory leak when adding new streams to an OutputFile
50d46ad
Video/Audio frames: fix message logged when failing to allocate data
ca3c386
VideoFrame: update constructors
e5ee852
AudioFrame: update constructors
eb3f708
Video/Audio frames: reorder methods
9c90c2d
pyTest: add tests to check Video/Audio frames
4f56f1a
VideoFrame: get error description when failing to get AVPicture size
5cd30bc
pyTest: split reader tests to testVideo/AudioReader.py
86502f4
pyTest: added test to create an InputFile inside an AudioReader
173538b
AudioDecoder: check if each extracted channel exists before decoding
8e5b9ef
AudioDecoder: fix seg fault when trying to extract one channel of a m…
d9b2f41
avprocessor app: fix conditional jump which depends on uninitialised …
249bcfb
AudioFrame: refactor how to get a default number of samples
da013d4
StreamTranscoder: check the next data buffers in case of audio frames
5d4888f
pyTest: add a test to extract one audio channel from a stream of one …
3a03cbf
AudioDecoder: refactor how to get bytes per sample
a66c49d
AudioDecoder: fix the number of channels used to compute the decoded …
b6dc069
StreamTranscoder: update log message when checking the next audio buf…
93ce328
StreamTranscoder: fix memory leak in case of generator after a demult…
11789bb
frames: rename local variables to log messages
dcf6509
AudioFrame: fix spelling in the doc of getDefaultNbSamples method
1cea044
IFrame: rename getSize to getDataSize
cd2db7b
frames: add log to warn about possible data already allocated
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
2 changes: 1 addition & 1 deletionapp/avProcessor/avProcessor.cpp
This file contains hidden or 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
4 changes: 3 additions & 1 deletionsrc/AvTranscoder/codec/AudioCodec.cpp
This file contains hidden or 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
5 changes: 3 additions & 2 deletionssrc/AvTranscoder/codec/ICodec.cpp
This file contains hidden or 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
4 changes: 3 additions & 1 deletionsrc/AvTranscoder/codec/VideoCodec.cpp
This file contains hidden or 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
7 changes: 6 additions & 1 deletionsrc/AvTranscoder/data/coded/CodedData.cpp
This file contains hidden or 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
4 changes: 2 additions & 2 deletionssrc/AvTranscoder/data/data.i
This file contains hidden or 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
113 changes: 69 additions & 44 deletionssrc/AvTranscoder/data/decoded/AudioFrame.cpp
This file contains hidden or 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
58 changes: 33 additions & 25 deletionssrc/AvTranscoder/data/decoded/AudioFrame.hpp
This file contains hidden or 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
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.