@scrypted/libav 1.0.156 → 1.0.158
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/formatcontext.cpp +1 -1
- package/src/frame.cpp +2 -1
package/package.json
CHANGED
package/src/formatcontext.cpp
CHANGED
|
@@ -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 =
|
|
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;
|
package/src/frame.cpp
CHANGED
|
@@ -257,7 +257,8 @@ Napi::Value AVFrameObject::CreateEncoder(const Napi::CallbackInfo &info)
|
|
|
257
257
|
if (framerateObject.Has("timeBaseNum") && framerateObject.Get("timeBaseNum").IsNumber() &&
|
|
258
258
|
framerateObject.Has("timeBaseDen") && framerateObject.Get("timeBaseDen").IsNumber())
|
|
259
259
|
{
|
|
260
|
-
c->framerate =
|
|
260
|
+
c->framerate.num = framerateObject.Get("timeBaseNum").As<Napi::Number>().Int32Value();
|
|
261
|
+
c->framerate.den = framerateObject.Get("timeBaseDen").As<Napi::Number>().Int32Value();
|
|
261
262
|
}
|
|
262
263
|
}
|
|
263
264
|
|