Skip to content

Commit 43b5211

Browse files
author
tnarine-amd
committed
Fix
The byteOffset ref param is now reset after the test.
1 parent c7f29fe commit 43b5211

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

amf/public/samples/CPPSamples/common/AudioPresenter.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ AMF_RESULT AudioPresenter::Seek(amf_pts pts)
5757
bool AudioPresenter::HandleSeek(const AMFAudioBuffer* pBuffer, bool& bDiscard, amf_size& byteOffset)
5858
{
5959
bDiscard = false;
60-
byteOffset = 0;
6160

6261
amf::AMFLock lock(&m_cs);
6362

@@ -66,6 +65,8 @@ bool AudioPresenter::HandleSeek(const AMFAudioBuffer* pBuffer, bool& bDiscard, a
6665
return false;
6766
}
6867

68+
byteOffset = 0;
69+
6970
const amf_pts
7071
pts = const_cast<AMFAudioBuffer*>(pBuffer)->GetPts(),
7172
duration = const_cast<AMFAudioBuffer*>(pBuffer)->GetDuration();

0 commit comments

Comments
 (0)