Skip to content

Commit a8f1c6a

Browse files
committed
3.2.0
Fix two severe bugs.
1 parent 3760c5f commit a8f1c6a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: MpegCoder/MpegCoder.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,7 @@ const cmpc::AVCodec* cmpc::CMpegEncoder::__add_stream() {
11751175
SCALE_FLAGS, nullptr, nullptr, nullptr);
11761176
if (!PStreamContex.sws_ctx) {
11771177
cerr << "Could not initialize the conversion context" << endl;
1178-
return false;
1178+
return nullptr;
11791179
}
11801180
}
11811181
}
@@ -1187,7 +1187,7 @@ const cmpc::AVCodec* cmpc::CMpegEncoder::__add_stream() {
11871187
SCALE_FLAGS, nullptr, nullptr, nullptr);
11881188
if (!PswsCtx) {
11891189
cerr << "Could not initialize the conversion context" << endl;
1190-
return false;
1190+
return nullptr;
11911191
}
11921192
}
11931193
if (!RGBbuffer) {

Diff for: MpegCoder/MpegStreamer.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1289,7 +1289,7 @@ const cmpc::AVCodec* cmpc::CMpegServer::__add_stream() {
12891289
SCALE_FLAGS, nullptr, nullptr, nullptr);
12901290
if (!PStreamContex.sws_ctx) {
12911291
cerr << "Could not initialize the conversion context" << endl;
1292-
return false;
1292+
return nullptr;
12931293
}
12941294
}
12951295
}
@@ -1301,7 +1301,7 @@ const cmpc::AVCodec* cmpc::CMpegServer::__add_stream() {
13011301
SCALE_FLAGS, nullptr, nullptr, nullptr);
13021302
if (!PswsCtx) {
13031303
cerr << "Could not initialize the conversion context" << endl;
1304-
return false;
1304+
return nullptr;
13051305
}
13061306
}
13071307
if (!RGBbuffer) {

0 commit comments

Comments
 (0)