8000 Fix RTSP/TCP socket example to use consistent indentation · Powercoder64/ffmpeg-python@413b71a · GitHub
[go: up one dir, main page]

Skip to content

Commit 413b71a

Browse files
committed
Fix RTSP/TCP socket example to use consistent indentation
1 parent e5e293f commit 413b71a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

examples/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -190,17 +190,17 @@ process2.wait()
190190
packet_size = 4096
191191

192192
process = (
193-
ffmpeg
194-
.input('rtsp://%s:8554/default')
195-
.output('-', format='h264')
196-
.run_async(pipe_stdout=True)
193+
ffmpeg
194+
.input('rtsp://%s:8554/default')
195+
.output('-', format='h264')
196+
.run_async(pipe_stdout=True)
197197
)
198198

199199
while process.poll() is None:
200-
packet = process.stdout.read(packet_size)
201-
try:
202-
tcp_socket.send(packet)
203-
except socket.error:
200+
packet = process.stdout.read(packet_size)
201+
try:
202+
tcp_socket.send(packet)
203+
except socket.error:
204204
process.stdout.close()
205205
process.wait()
206206
break

0 commit comments

Comments
 (0)
0