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

They've already been handled before pushing them into the adapter.
This commit is contained in:
Olivier Crête 2016-09-27 15:26:19 -04:00
parent 7f294ad125
commit 7025d014bb
2 changed files with 2 additions and 10 deletions

View file

@ -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:

View file

@ -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: