rtpmparobustdepay: use valid bitrate for dummy frame
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Thu, 9 Sep 2010 14:31:56 +0000 (16:31 +0200)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Thu, 9 Sep 2010 14:33:29 +0000 (16:33 +0200)
gst/rtp/gstrtpmparobustdepay.c

index 716bf205672ffb5103063f7c93b2e4d458608629..70953b16c423ecd19e64d596b094a9e08c473022 100644 (file)
@@ -281,7 +281,7 @@ gst_rtp_mpa_robust_depay_generate_dummy_frame (GstRtpMPARobustDepay *
   dummy = g_slice_dup (GstADUFrame, frame);
 
   /* go for maximum bitrate */
-  dummy->header = frame->header | (0xf << 12);
+  dummy->header = (frame->header & ~(0xf << 12)) | (0xe << 12);
   dummy->size =
       mp3_type_frame_length_from_header (GST_ELEMENT_CAST (rtpmpadepay),
       dummy->header, NULL, NULL, NULL, NULL, NULL, NULL, NULL);