Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit99ad5fe

Browse files
committed
InputStream: create and fill CodedData before adding it to cache
1 parent99dba44 commit99ad5fe

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎src/AvTranscoder/stream/InputStream.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,10 @@ void InputStream::addPacket(const AVPacket& packet)
122122
return;
123123
}
124124

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);
125+
LOG_DEBUG("Add a packet data for the stream" << _streamIndex <<" to the cache");
126+
CodedData codedData;
127+
codedData.copyData(packet.data, packet.size);
128+
_streamCache.push(codedData);
128129
}
129130

130131
voidInputStream::clearBuffering()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp