@scrypted/libav 1.0.24 → 1.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/decode.cpp +7 -7
package/package.json
CHANGED
package/src/decode.cpp
CHANGED
|
@@ -209,7 +209,7 @@ static enum AVPixelFormat get_hw_format(AVCodecContext *ctx,
|
|
|
209
209
|
return *p;
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
fprintf(stderr, "Failed to get HW surface format.\n");
|
|
212
|
+
// fprintf(stderr, "Failed to get HW surface format.\n");
|
|
213
213
|
return AV_PIX_FMT_NONE;
|
|
214
214
|
}
|
|
215
215
|
|
|
@@ -592,12 +592,12 @@ Napi::Value AVFormatContextObject::GetPointer(const Napi::CallbackInfo &info)
|
|
|
592
592
|
|
|
593
593
|
Napi::Object Init(Napi::Env env, Napi::Object exports)
|
|
594
594
|
{
|
|
595
|
-
int error_code = AVERROR(EAGAIN);
|
|
596
|
-
printf("AVERROR(EAGAIN) = %d\n", error_code);
|
|
597
|
-
error_code = AVERROR(AVERROR_EOF);
|
|
598
|
-
printf("AVERROR(AVERROR_EOF) = %d\n", error_code);
|
|
599
|
-
error_code = AVERROR(EINVAL);
|
|
600
|
-
printf("AVERROR(EINVAL) = %d\n", error_code);
|
|
595
|
+
// int error_code = AVERROR(EAGAIN);
|
|
596
|
+
// printf("AVERROR(EAGAIN) = %d\n", error_code);
|
|
597
|
+
// error_code = AVERROR(AVERROR_EOF);
|
|
598
|
+
// printf("AVERROR(AVERROR_EOF) = %d\n", error_code);
|
|
599
|
+
// error_code = AVERROR(EINVAL);
|
|
600
|
+
// printf("AVERROR(EINVAL) = %d\n", error_code);
|
|
601
601
|
|
|
602
602
|
AVFilterGraphObject::Init(env, exports);
|
|
603
603
|
AVFrameObject::Init(env, exports);
|