Commit 7025d014 authored by Olivier Crête's avatar Olivier Crête

rtph26[45]depay: Don't handle NALs inside STAP units twice

They've already been handled before pushing them into the adapter.
parent 7f294ad1
......@@ -1055,12 +1055,8 @@ gst_rtp_h264_depay_process (GstRTPBaseDepayload * depayload, GstRTPBuffer * rtp)
}
outsize = gst_adapter_available (rtph264depay->adapter);
if (outsize > 0) {
if (outsize > 0)
outbuf = gst_adapter_take_buffer (rtph264depay->adapter, outsize);
outbuf =
gst_rtp_h264_depay_handle_nal (rtph264depay, outbuf, timestamp,
marker);
}
break;
}
case 26:
......
......@@ -1256,12 +1256,8 @@ gst_rtp_h265_depay_process (GstRTPBaseDepayload * depayload, GstRTPBuffer * rtp)
}
outsize = gst_adapter_available (rtph265depay->adapter);
if (outsize > 0) {
if (outsize > 0)
outbuf = gst_adapter_take_buffer (rtph265depay->adapter, outsize);
outbuf =
gst_rtp_h265_depay_handle_nal (rtph265depay, outbuf, timestamp,
marker);
}
break;
}
case 49:
......
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