Skip to content

Commit 6b68c8c

Browse files
committed
We don't need this type of comment
1 parent d06308b commit 6b68c8c

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

av/container/input.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,6 @@ def __cinit__(self, *args, **kwargs):
5252
self.set_timeout(self.open_timeout)
5353
self.start_timeout()
5454
with cython.nogil:
55-
# This peeks are the first few frames to:
56-
# - set stream.disposition from codec.audio_service_type (not exposed);
57-
# - set stream.codec.bits_per_coded_sample;
58-
# - set stream.duration;
59-
# - set stream.start_time;
60-
# - set stream.r_frame_rate to average value;
61-
# - open and closes codecs with the options provided.
6255
ret = lib.avformat_find_stream_info(self.ptr, c_options)
6356
self.set_timeout(None)
6457
self.err_check(ret)
@@ -76,7 +69,6 @@ def __cinit__(self, *args, **kwargs):
7669
stream = self.ptr.streams[i]
7770
codec = lib.avcodec_find_decoder(stream.codecpar.codec_id)
7871
if codec:
79-
# allocate and initialize decoder
8072
codec_context = lib.avcodec_alloc_context3(codec)
8173
err_check(
8274
lib.avcodec_parameters_to_context(codec_context, stream.codecpar)

0 commit comments

Comments
 (0)