summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorLuis de Bethencourt <luis.bg@samsung.com>2015-03-09 15:58:33 +0000
committerLuis de Bethencourt <luis.bg@samsung.com>2015-03-09 16:17:45 +0000
commite87113781ad53065f87347ad525631a57d992c07 (patch)
tree4b573e1dbce32e1d8079b3d84ec7b14925a2051f /gst
parenta52e432fda61f6942808d40fb58e689e45037ce2 (diff)
rtph263pay: remove uneeded variable
We just need to save the ebit information in case there is an error decoding.
Diffstat (limited to 'gst')
-rw-r--r--gst/rtp/gstrtph263pay.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gst/rtp/gstrtph263pay.c b/gst/rtp/gstrtph263pay.c
index 4de0fabdd..285ca8cea 100644
--- a/gst/rtp/gstrtph263pay.c
+++ b/gst/rtp/gstrtph263pay.c
@@ -1388,8 +1388,7 @@ gst_rtp_h263_pay_mode_B_fragment (GstRtpH263Pay * rtph263pay,
guint max_payload_size;
GstRtpH263PayBoundry boundry;
guint mb;
- //TODO remove m
- GstRtpH263PayMB *m;
+ guint8 ebit;
guint first = 0;
guint payload_len;
@@ -1482,15 +1481,16 @@ gst_rtp_h263_pay_mode_B_fragment (GstRtpH263Pay * rtph263pay,
// We are on MB layer
- m = mac = gst_rtp_h263_pay_mb_new (&boundry, 0);
+ mac = gst_rtp_h263_pay_mb_new (&boundry, 0);
for (mb = 0; mb < format_props[context->piclayer->ptype_srcformat][1]; mb++) {
GST_DEBUG ("================ START MB %d =================", mb);
//Find next macroblock boundaries
+ ebit = mac->ebit;
if (!(mac = gst_rtp_h263_pay_B_mbfinder (context, gob, mac, mb))) {
- GST_DEBUG ("Error decoding MB - sbit: %d", 8 - m->ebit);
+ GST_DEBUG ("Error decoding MB - sbit: %d", 8 - ebit);
GST_ERROR ("Error decoding in GOB");
goto decode_error;
@@ -1513,7 +1513,6 @@ gst_rtp_h263_pay_mode_B_fragment (GstRtpH263Pay * rtph263pay,
gob->end = mac->end;
break;
}
- m = mac;
GST_DEBUG ("Found MB: mba: %d start: %p end: %p len: %d sbit: %d ebit: %d",
mac->mba, mac->start, mac->end, mac->length, mac->sbit, mac->ebit);
GST_DEBUG ("================ END MB %d =================", mb);