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 1553da1

Browse files
committed
3.2.0
Fix a severe bug caused by wrong returned data type.
1 parent 8be9193 commit 1553da1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎MpegCoder/MpegCoder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,7 +1180,7 @@ const cmpc::AVCodec* cmpc::CMpegEncoder::__add_stream() {
11801180
SCALE_FLAGS, nullptr, nullptr, nullptr);
11811181
if (!PStreamContex.sws_ctx) {
11821182
cerr << "Could not initialize the conversion context" << endl;
1183-
return false;
1183+
return nullptr;
11841184
}
11851185
}
11861186
}
@@ -1192,7 +1192,7 @@ const cmpc::AVCodec* cmpc::CMpegEncoder::__add_stream() {
11921192
SCALE_FLAGS, nullptr, nullptr, nullptr);
11931193
if (!PswsCtx) {
11941194
cerr << "Could not initialize the conversion context" << endl;
1195-
return false;
1195+
return nullptr;
11961196
}
11971197
}
11981198
if (!RGBbuffer) {

‎MpegCoder/MpegStreamer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,7 @@ const cmpc::AVCodec* cmpc::CMpegServer::__add_stream() {
12901290
SCALE_FLAGS, nullptr, nullptr, nullptr);
12911291
if (!PStreamContex.sws_ctx) {
12921292
cerr << "Could not initialize the conversion context" << endl;
1293-
return false;
1293+
return nullptr;
12941294
}
12951295
}
12961296
}
@@ -1302,7 +1302,7 @@ const cmpc::AVCodec* cmpc::CMpegServer::__add_stream() {
13021302
SCALE_FLAGS, nullptr, nullptr, nullptr);
13031303
if (!PswsCtx) {
13041304
cerr << "Could not initialize the conversion context" << endl;
1305-
return false;
1305+
return nullptr;
13061306
}
13071307
}
13081308
if (!RGBbuffer) {

0 commit comments

Comments
(0)

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