We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 375e05e commit d79139dCopy full SHA for d79139d
src/decode.cc
@@ -81,6 +81,7 @@ napi_value decoder(napi_env env, napi_callback_info info) {
81
NAPI_THROW_ERROR("Stream index is out of bounds for the given format.");
82
}
83
params = format->streams[streamIdx]->codecpar;
84
+ codecID = params->codec_id;
85
codecName = (char*) avcodec_get_name(params->codec_id);
86
codecNameLen = strlen(codecName);
87
goto create;
@@ -98,6 +99,7 @@ napi_value decoder(napi_env env, napi_callback_info info) {
98
99
100
status = napi_get_value_external(env, jsParams, (void**) ¶ms);
101
CHECK_STATUS;
102
103
104
105
0 commit comments