Skip to content

Commit

Permalink
Do not start writing audio frames until at least one video frame has …
Browse files Browse the repository at this point in the history
…been written. Fixes an issue where first video frame in the movie is occasionally blank
  • Loading branch information
alexchugunov committed Apr 8, 2014
1 parent 52ec666 commit 3c4a08b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/Source/iOS/GPUImageMovieWriter.m
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ - (void)processAudioBuffer:(CMSampleBufferRef)audioBuffer;
return;
}

if (_hasAudioTrack)
if (_hasAudioTrack && CMTIME_IS_VALID(startTime))
{
CFRetain(audioBuffer);

Expand Down

0 comments on commit 3c4a08b

Please sign in to comment.