[FFmpeg-soc] [soc]: r4193 - wmapro/wma3dec.c

faust3 subversion at mplayerhq.hu
Tue Apr 7 20:07:44 CEST 2009


Author: faust3
Date: Tue Apr  7 20:07:43 2009
New Revision: 4193

Log:
adapted wmapro decoder for avcodec_decode_audio3

Modified:
   wmapro/wma3dec.c

Modified: wmapro/wma3dec.c
==============================================================================
--- wmapro/wma3dec.c	Mon Apr  6 21:45:21 2009	(r4192)
+++ wmapro/wma3dec.c	Tue Apr  7 20:07:43 2009	(r4193)
@@ -1506,16 +1506,16 @@ static void save_bits(WMA3DecodeContext 
  *@param avctx codec context
  *@param data the output buffer
  *@param data_size number of bytes that were written to the output buffer
- *@param buf input buffer
- *@param buf_size input buffer length
+ *@param avpkt input packet
  *@return number of bytes that were read from the input buffer
  */
 static int wma3_decode_packet(AVCodecContext *avctx,
-                             void *data, int *data_size,
-                             const uint8_t *buf, int buf_size)
+                             void *data, int *data_size, AVPacket* avpkt)
 {
     GetBitContext gb;
     WMA3DecodeContext *s = avctx->priv_data;
+    const uint8_t* buf = avpkt->data;
+    int buf_size = avpkt->size;
     int more_frames=1;
     int num_bits_prev_frame;
     int packet_sequence_number;


More information about the FFmpeg-soc mailing list