summaryrefslogtreecommitdiff
path: root/gr-atsc/src/lib/atsc_depad.h
diff options
context:
space:
mode:
authoreb2008-04-30 04:39:02 +0000
committereb2008-04-30 04:39:02 +0000
commitb1f675f291e9bcae640bd6fcb6707d50951f0268 (patch)
tree0fb515104c5b9e7dae82c6618385a8125d7771f9 /gr-atsc/src/lib/atsc_depad.h
parent8f00c03789c28b38c7ae92f6f407523d67c8318f (diff)
downloadgnuradio-b1f675f291e9bcae640bd6fcb6707d50951f0268.tar.gz
gnuradio-b1f675f291e9bcae640bd6fcb6707d50951f0268.tar.bz2
gnuradio-b1f675f291e9bcae640bd6fcb6707d50951f0268.zip
Fixed completely buggy memcopy that overwrote potentially lots of memory in
atsc_depad.cc. The problem has to do with confusion between input and output sizes, as well as some very wrong pointer math (Dan Halperin). git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@8298 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-atsc/src/lib/atsc_depad.h')
-rw-r--r--gr-atsc/src/lib/atsc_depad.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/gr-atsc/src/lib/atsc_depad.h b/gr-atsc/src/lib/atsc_depad.h
index 378f1d133..58dfdaf62 100644
--- a/gr-atsc/src/lib/atsc_depad.h
+++ b/gr-atsc/src/lib/atsc_depad.h
@@ -30,8 +30,7 @@ typedef boost::shared_ptr<atsc_depad> atsc_depad_sptr;
atsc_depad_sptr atsc_make_depad();
/*!
- * \brief depad mpeg ts packets from 256 byte atsc_mpeg_packet
- * to 188 byte char
+ * \brief depad mpeg ts packets from 256 byte atsc_mpeg_packet to 188 byte char
* \ingroup atsc
*
* input: atsc_mpeg_packet; output: unsigned char
@@ -43,7 +42,6 @@ class atsc_depad : public gr_sync_interpolator
atsc_depad();
public:
- void forecast (int noutput_items, gr_vector_int &ninput_items_required);
int work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);