Commit 87b973e0 authored by Mickaël Turnel's avatar Mickaël Turnel

Fix H264 not using defined MTU

parent 18b41c25
......@@ -59,7 +59,7 @@ void MSOpenH264Decoder::initialize()
{
if (!mInitialized) {
mFirstImageDecoded = false;
mUnpacker=rfc3984_new();
mUnpacker=rfc3984_new_with_factory(mFilter->factory);
if (mDecoder != 0) {
SDecodingParam params = { 0 };
#if (OPENH264_MAJOR == 1) && (OPENH264_MINOR >=6)
......
......@@ -85,7 +85,7 @@ MSOpenH264Encoder::~MSOpenH264Encoder()
void MSOpenH264Encoder::initialize()
{
mFrameCount = 0;
mPacker = rfc3984_new();
mPacker = rfc3984_new_with_factory(mFilter->factory);
if (mPacketisationModeSet)
rfc3984_set_mode(mPacker, mPacketisationMode);
else rfc3984_set_mode(mPacker, 1); // in absence of explicit directive from the other end, allow mode 1 because it allows to send big slices which is necessary for large images
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment