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 99dba44 commit 99ad5feCopy full SHA for 99ad5fe
src/AvTranscoder/stream/InputStream.cpp
@@ -122,9 +122,10 @@ void InputStream::addPacket(const AVPacket& packet)
122
return;
123
}
124
125
- LOG_DEBUG("Add a packet data for the stream " << _streamIndex << " to the cache")
126
- _streamCache.push(CodedData());
127
- _streamCache.back().copyData(packet.data, packet.size);
+ LOG_DEBUG("Add a packet data for the stream " << _streamIndex << " to the cache");
+ CodedData codedData;
+ codedData.copyData(packet.data, packet.size);
128
+ _streamCache.push(codedData);
129
130
131
void InputStream::clearBuffering()
0 commit comments