changeset 405:04d7dda7ccd5 libavformat

kill obnoxious ogg_packet passing from demuxer to decoder
author michael
date Sun, 04 Apr 2004 02:07:15 +0000
parents 6579fe3ade40
children ea22a438ca79
files ogg.c
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ogg.c	Sun Apr 04 01:10:50 2004 +0000
+++ b/ogg.c	Sun Apr 04 02:07:15 2004 +0000
@@ -226,13 +226,12 @@
 
     if(next_packet(avfcontext, &op)) 
 	return -EIO ;
-    if(av_new_packet(pkt, sizeof(ogg_packet) + op.bytes) < 0)
+    if(av_new_packet(pkt, op.bytes) < 0)
 	return -EIO ;
     pkt->stream_index = 0 ;
-    memcpy(pkt->data, &op, sizeof(ogg_packet)) ;
-    memcpy(pkt->data + sizeof(ogg_packet), op.packet, op.bytes) ;
+    memcpy(pkt->data, op.packet, op.bytes);
 
-    return sizeof(ogg_packet) + op.bytes ;
+    return op.bytes;
 }