rtpmp4gdepay: improve bogus interleaved index compensating
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Tue, 6 Sep 2011 11:18:40 +0000 (13:18 +0200)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Tue, 6 Sep 2011 11:20:23 +0000 (13:20 +0200)
Patch by <gudake@gmail.com>

Fixes #654585.

gst/rtp/gstrtpmp4gdepay.c

index 02ac8d6..f16899f 100644 (file)
@@ -611,6 +611,8 @@ gst_rtp_mp4g_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf)
               rtpmp4gdepay->next_AU_index = GST_BUFFER_OFFSET (outbuf);
               gst_rtp_mp4g_depay_flush_queue (rtpmp4gdepay);
             }
+            /* rebase next_AU_index to current rtp's first AU_index */
+            rtpmp4gdepay->next_AU_index = AU_index;
           }
           rtpmp4gdepay->prev_rtptime = rtptime;
           rtpmp4gdepay->prev_AU_num = num_AU_headers;