Skip to content

Commit 61bbe4f

Browse files
committed
More comments
1 parent fa0856a commit 61bbe4f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/torchcodec/_core/Encoder.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,8 @@ class AudioEncoder {
9595
// │ - num channels │
9696
// │ - format │
9797
// │ - sample rate │
98-
// │ If sample rate, │
99-
// │ stores data in │
100-
// │ swr buffers │
101-
// │ which will need │
102-
// │ to be flushed │
98+
// │ If sample rate is converted, stores data in swr buffers, │
99+
// │ which will need to be flushed by maybeFlushSwrBuffers() │
103100
// │ │
104101
// │ ▲ │
105102
// │ │ ┌─EncodeFrameThroughFifo()──────────────┐│
@@ -114,7 +111,10 @@ class AudioEncoder {
114111
// └──────────────────────────────────────────────┼──────────────────────┼────────────────────┘
115112
// │ │
116113
// AVFrame from maybeFlushSwrBuffers() ───┘ │
117-
// Only if sample rate conversion was needed
118-
// nullptr, to flush
119-
// FFmpeg buffers
114+
// Only if sample rate conversion was needed nullptr, to flush
115+
// The call to maybeFlushSwrBuffers() will FFmpeg buffers
116+
// also instruct to flush the FIFO, if it exists.
117+
//
118+
//
119+
//
120120
/* clang-format on */

0 commit comments

Comments
 (0)