openh264enc: Remove broken byte-stream to avc conversion and just output byte-stream...
authorSebastian Dröge <sebastian@centricular.com>
Thu, 30 Jun 2016 08:33:30 +0000 (10:33 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 30 Jun 2016 08:37:08 +0000 (10:37 +0200)
commite7f8c62d4240a99960b2ed5f480e947caecc2441
treeda0cf08a56ebfd04c58add20d5277c44386c1827
parentc19d1b46c36ee0e8f8cfcb03b026e8997d70c1c4
openh264enc: Remove broken byte-stream to avc conversion and just output byte-stream as generated by the encoder

The byte-stream to avc conversion did not consider NAL sizes bigger than 2^16,
multiple layers, multiple NALs per layer, and various other things. This
caused corrupted streams in higher bitrates and other circumstances.

Let's just forward byte-stream as generated by the encoder and let h264parse
handle conversion to avc if needed. That way we only have to keep around one
version of the conversion and don't have to fix it in multiple places.
ext/openh264/gstopenh264enc.cpp