mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-02-18 11:02:31 +00:00
Call MoveNext before accessing Current
This commit is contained in:
parent
0cd4e076ff
commit
cf8f7cc674
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@
|
|||
|
||||
public async Task WriteAsync(Stream outputStream, CancellationToken cancellationToken)
|
||||
{
|
||||
if (_sampleEnumerator.Current != null)
|
||||
if (_sampleEnumerator.MoveNext() && _sampleEnumerator.Current != null)
|
||||
{
|
||||
await _sampleEnumerator.Current.SerializeAsync(outputStream, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue