summaryrefslogtreecommitdiff
path: root/src/combined/xine_theora_decoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/combined/xine_theora_decoder.c')
-rw-r--r--src/combined/xine_theora_decoder.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/combined/xine_theora_decoder.c b/src/combined/xine_theora_decoder.c
index d43affead..0959a5411 100644
--- a/src/combined/xine_theora_decoder.c
+++ b/src/combined/xine_theora_decoder.c
@@ -15,7 +15,7 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
* $Id: xine_decoder.c,v 1.26 2006/07/10 22:08:30 dgp85 Exp $
*
@@ -123,23 +123,22 @@ static void yuv2frame(yuv_buffer *yuv, vo_frame_t *frame, int offset_x, int offs
static int collect_data (theora_decoder_t *this, buf_element_t *buf ) {
/* Assembles an ogg_packet which was sent with send_ogg_packet over xinebuffers */
/* this->done, this->rejected, this->op and this->decoder->flags are needed*/
- int op_size = sizeof (ogg_packet);
if (buf->decoder_flags & BUF_FLAG_FRAME_START) {
this->done=0; /*start from the beginnig*/
this->reject=0;/*new packet - new try*/
/*copy the ogg_packet struct and the sum, correct the adress of the packet*/
- xine_fast_memcpy (&this->op, buf->content, op_size);
+ xine_fast_memcpy (&this->op, buf->content, sizeof(ogg_packet));
this->op.packet=this->packet;
- readin_op (this, buf->content + op_size, buf->size - op_size );
+ readin_op (this, buf->content + sizeof(ogg_packet), buf->size - sizeof(ogg_packet) );
/*read the rest of the data*/
} else {
if (this->done==0 || this->reject) {
/*we are starting to collect an packet without the beginnig
- reject the rest*/
+ reject the rest*/
printf ("libtheora: rejecting packet\n");
this->reject=1;
return 0;