diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2004-03-14 23:20:41 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2004-03-14 23:20:41 +0000 |
commit | 87960e43ea268d999cbc3ed5a589f660fb3e3192 (patch) | |
tree | 48a676a58e4355eee64d3f14ea205d793809a323 /ext/mpeg2enc/gstmpeg2encstreamwriter.cc | |
parent | 7a778ee4b7ec09a1f5b2185c9cceee3910dfbdf2 (diff) | |
download | gst-plugins-bad-87960e43ea268d999cbc3ed5a589f660fb3e3192.tar.gz gst-plugins-bad-87960e43ea268d999cbc3ed5a589f660fb3e3192.tar.bz2 gst-plugins-bad-87960e43ea268d999cbc3ed5a589f660fb3e3192.zip |
gst-indent c++ files
Original commit message from CVS:
gst-indent c++ files
Diffstat (limited to 'ext/mpeg2enc/gstmpeg2encstreamwriter.cc')
-rw-r--r-- | ext/mpeg2enc/gstmpeg2encstreamwriter.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/ext/mpeg2enc/gstmpeg2encstreamwriter.cc b/ext/mpeg2enc/gstmpeg2encstreamwriter.cc index ba59f3d4..39c705ac 100644 --- a/ext/mpeg2enc/gstmpeg2encstreamwriter.cc +++ b/ext/mpeg2enc/gstmpeg2encstreamwriter.cc @@ -31,9 +31,8 @@ * Class init stuff. */ -GstMpeg2EncStreamWriter::GstMpeg2EncStreamWriter (GstPad *in_pad, - EncoderParams *params) : - ElemStrmWriter (*params) +GstMpeg2EncStreamWriter::GstMpeg2EncStreamWriter (GstPad * in_pad, EncoderParams * params): +ElemStrmWriter (*params) { pad = in_pad; buf = NULL; @@ -44,8 +43,7 @@ GstMpeg2EncStreamWriter::GstMpeg2EncStreamWriter (GstPad *in_pad, */ void -GstMpeg2EncStreamWriter::PutBits (guint32 val, - gint n) +GstMpeg2EncStreamWriter::PutBits (guint32 val, gint n) { /* only relevant bits. Note that (according to Andrew), * some CPUs do bitshifts modulo wordsize (32), which @@ -62,7 +60,7 @@ GstMpeg2EncStreamWriter::PutBits (guint32 val, GST_BUFFER_SIZE (buf) = 0; } - outbfr = (outbfr << outcnt ) | (val >> (n - outcnt)); + outbfr = (outbfr << outcnt) | (val >> (n - outcnt)); GST_BUFFER_DATA (buf)[GST_BUFFER_SIZE (buf)++] = outbfr; n -= outcnt; outcnt = 8; |