mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-01-18 04:26:44 +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 string GetStreamArguments()
|
|||
|
||||
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…
Reference in a new issue