We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfaf987 commit b460fceCopy full SHA for b460fce
src/AvTranscoder/data/decoded/AudioFrame.hpp
@@ -56,6 +56,10 @@ class AvExport AudioFrame : public IFrame
56
57
size_t getSize() const;
58
59
+ /**
60
+ * @brief This methods dynamically updates the size that the data buffer would occupy if allocated.
61
+ * @warning If the data buffer is already allocated, this could lead to memory leaks or seg fault.
62
+ */
63
void setNbSamplesPerChannel(const size_t nbSamples) { _frame->nb_samples = nbSamples; }
64
65
void assignBuffer(const unsigned char* ptrValue);
0 commit comments