Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6f355b9

Browse files
committed
3.1.0
Fix a bug caused by the constructor `MpegServer()`.
1 parent 58b9ed2 commit 6f355b9

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

‎CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010

1111
3. Support `nthread` option for `MpegDecoder`, `MpegEncoder`, `MpegClient` and `MpegServer`.
1212

13-
4. Fix typos in docstrings.
13+
4. Fix a bug caused by the constructor `MpegServer()`.
14+
15+
5. Fix typos in docstrings.
1416

1517
### V3.0.0 update report:
1618

‎MpegCoder/MpegPyd.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,11 @@ V3.1.0 update report:
216216
2. Support http, ftp, sftp streams for MpegServer.
217217
3. Support "nthread" option for MpegDecoder, MpegEncoder, MpegClient and
218218
MpegServer.
219-
4. Fix typos in docstrings.
219+
4. Fix a bug caused by the constructor MpegServer().
220+
5. Fix typos in docstrings.
220221
V3.0.0 update report:
221222
1. Fix a severe memory leaking bugs when using AVPacket.
222-
2. Fix a bug caused by using `MpegClient.terminate()` when a video is closed
223+
2. Fix a bug caused by using MpegClient.terminate() when a video is closed
223224
by the server.
224225
3. Support the MpegServer. This class is used for serving the online video
225226
streams.

‎MpegCoder/MpegStreamer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ cmpc::CMpegServer::CMpegServer(void) :
946946
bitRate(1024), width(100), height(100), timeBase(_setAVRational(1, 25)), frameRate(_setAVRational(25, 1)), \
947947
GOPSize(10), MaxBFrame(1), PStreamContex({ 0 }), PFormatCtx(nullptr), PswsCtx(nullptr), RGBbuffer(nullptr), \
948948
Ppacket(nullptr), __have_video(false), __enable_header(false), widthSrc(0), heightSrc(0), __frameRGB(nullptr), \
949-
__start_time(0), __cur_time(0), time_base_q(_setAVRational(1, AV_TIME_BASE)), nthread(nthread) {
949+
__start_time(0), __cur_time(0), time_base_q(_setAVRational(1, AV_TIME_BASE)), nthread(0) {
950950
videoPath.clear();
951951
__formatName.clear();
952952
codecName.clear();

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /