]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/ws-snd1.c
Properly initialize x264_picture_t in libx264.
[ffmpeg] / libavcodec / ws-snd1.c
index b27b155135901468cebb3725a80878c76d05f0c0..a383673db704bb1b0a9b8a9e3b09af5a54e78ad3 100644 (file)
@@ -23,7 +23,7 @@
 #include "avcodec.h"
 
 /**
- * @file libavcodec/ws-snd1.c
+ * @file
  * Westwood SNDx codecs.
  *
  * Reference documents about VQA format and its audio codecs
@@ -48,8 +48,10 @@ static av_cold int ws_snd_decode_init(AVCodecContext * avctx)
 
 static int ws_snd_decode_frame(AVCodecContext *avctx,
                 void *data, int *data_size,
-                const uint8_t *buf, int buf_size)
+                AVPacket *avpkt)
 {
+    const uint8_t *buf = avpkt->data;
+    int buf_size = avpkt->size;
 //    WSSNDContext *c = avctx->priv_data;
 
     int in_size, out_size;
@@ -145,7 +147,7 @@ static int ws_snd_decode_frame(AVCodecContext *avctx,
 
 AVCodec ws_snd1_decoder = {
     "ws_snd1",
-    CODEC_TYPE_AUDIO,
+    AVMEDIA_TYPE_AUDIO,
     CODEC_ID_WESTWOOD_SND1,
     0,
     ws_snd_decode_init,