File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff 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 */
You can’t perform that action at this time.
0 commit comments