Skip to content

Commit 9e01f28

Browse files
committedJul 20, 2021
3.1.0
Fix a bug caused by the constructor `MpegServer()`.
1 parent 5dc9b8d commit 9e01f28

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed
 

‎CHANGELOG.md

+3-1
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

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

‎MpegCoder/MpegStreamer.cpp

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

0 commit comments

Comments
 (0)