Skip to content

Commit

Permalink
fix: ps file seek reset for rtsp test
Browse files Browse the repository at this point in the history
  • Loading branch information
nanguantong committed Sep 29, 2024
1 parent e68d84b commit 232f58e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions librtsp/test/media/ps-file-reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,14 @@ int PSFileReader::Seek(int64_t& dts)
{
// only audio
if (m_v_start_ts < 0)
break;
return 0;

if (pkt->flags & AVPACKET_FLAG_KEY)
break;
return 0;
}
}

m_pkts->Reset();
return 0;
}

Expand Down

0 comments on commit 232f58e

Please sign in to comment.