rtph264depay: only guess AU boundaries when aren't indicated by marker
authorJosep Torra <n770galaxy@gmail.com>
Fri, 11 Apr 2014 16:19:49 +0000 (18:19 +0200)
committerWim Taymans <wtaymans@redhat.com>
Sat, 12 Apr 2014 02:42:36 +0000 (04:42 +0200)
commiteaee14aff4489823b6540568ba6c57c559dd9edd
tree0f317ec0e63dd3f21a77d69a653a3882fab1babb
parentb32de2794b3a73f78a03f6018aed9150a95ff0aa
rtph264depay: only guess AU boundaries when aren't indicated by marker

The marker bit isn't mandatory and we had in place code to guess AU
boundaries by detecting a new picture start. This guessing code
didn't work with interlaced content that has proper marker bits
to indicate the AU boundaries. It was leaking the first field buffer
and producing a corrupted output.

fixes: https://bugzilla.gnome.org/show_bug.cgi?id=728041
gst/rtp/gstrtph264depay.c