@scrypted/libav 1.0.157 → 1.0.159

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrypted/libav",
3
- "version": "1.0.157",
3
+ "version": "1.0.159",
4
4
  "dependencies": {
5
5
  "detect-libc": "^2.0.3",
6
6
  "follow-redirects": "^1.15.9",
package/src/bsf.cpp CHANGED
@@ -201,5 +201,13 @@ Napi::Value AVBitstreamFilter::CopyParameters(const Napi::CallbackInfo &info)
201
201
  Napi::Error::New(info.Env(), AVErrorString(ret)).ThrowAsJavaScriptException();
202
202
  return info.Env().Undefined();
203
203
  }
204
+
205
+ ret = av_bsf_init(bsfContext);
206
+ if (ret < 0)
207
+ {
208
+ Napi::Error::New(info.Env(), AVErrorString(ret)).ThrowAsJavaScriptException();
209
+ return info.Env().Undefined();
210
+ }
211
+
204
212
  return info.Env().Undefined();
205
213
  }
@@ -604,7 +604,7 @@ Napi::Value AVFormatContextObject::Create(const Napi::CallbackInfo &info)
604
604
  // RTP doesn't initialize properly?
605
605
  if (formatName == "rtp")
606
606
  {
607
- int MAX_RTP_PACKET_SIZE = 65536;
607
+ int MAX_RTP_PACKET_SIZE = 64000;
608
608
  fmt_ctx_->packet_size = MAX_RTP_PACKET_SIZE;
609
609
  RTPMuxContext *rtp_ctx = (RTPMuxContext *)fmt_ctx_->priv_data;
610
610
  rtp_ctx->max_payload_size = MAX_RTP_PACKET_SIZE - 12;