Skip to content

Commit 1cde61a

Browse files
committed
Update comment
1 parent af51bd3 commit 1cde61a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mxv/reader.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func (r *Reader) VideoFrameData(frame int) (io.Reader, error) {
168168
}
169169

170170
// Check size, but only if the VideoFrameChunkSize field is != 0.
171-
// May be some sort of corruption that occurs in older MXV files.
171+
// VideoFrameChunkSize being zero may be some sort of corruption that occurs in older MXV files.
172172
if vfte.VideoFrameChunkSize != 0 && chunk.Length() != int64(vfte.VideoFrameChunkSize) {
173173
return nil, fmt.Errorf("parsed chunk is of wrong size. Got %d bytes, want %d bytes", chunk.Length(), vfte.VideoFrameChunkSize)
174174
}
@@ -243,7 +243,7 @@ func (r *Reader) AudioFrameData(frame int) (reader io.Reader, startSample uint64
243243
}
244244

245245
// Check size, but only if the AudioFrameChunkSize field is != 0.
246-
// May be some sort of corruption that occurs in older MXV files.
246+
// AudioFrameChunkSize being zero may be some sort of corruption that occurs in older MXV files.
247247
if afte.AudioFrameChunkSize != 0 && chunk.Length() != int64(afte.AudioFrameChunkSize) {
248248
return nil, 0, 0, fmt.Errorf("parsed chunk is of wrong size. Got %d bytes, want %d bytes", chunk.Length(), afte.AudioFrameChunkSize)
249249
}

0 commit comments

Comments
 (0)