tsdemux: Make jp2k handling more robust and efficient
authorEdward Hervey <edward@centricular.com>
Wed, 30 Aug 2017 06:37:04 +0000 (08:37 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Fri, 1 Sep 2017 08:49:36 +0000 (10:49 +0200)
commit52d0ef2665e0c620e503903d6eebe0771f92c5ba
tree7eb4e2676a81cbfb33399807ca10e521288014ac
parentc393f0d768a5c86dade48d991fb7d890f6dc5221
tsdemux: Make jp2k handling more robust and efficient

* Avoid copying the pending data and instead create a buffer directly from
  that data with the appropriate offset.
* Locate the jp2k magic to determine the exact location of the (first) frame
  data instead of assuming that the header is of an expected size

https://bugzilla.gnome.org/show_bug.cgi?id=786111
gst/mpegtsdemux/tsdemux.c