]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/sgidec.c
Make sure that eac3_decoder only gets enabled when CONFIG_EAC3_DECODER is set.
[ffmpeg] / libavcodec / sgidec.c
index 34f949dd2351ec1edb0734270645a91ae1c4482f..dadbc19d2228bea5438659b48be92bb23c18581f 100644 (file)
@@ -147,8 +147,10 @@ static int read_uncompressed_sgi(unsigned char* out_buf, uint8_t* out_end,
 
 static int decode_frame(AVCodecContext *avctx,
                         void *data, int *data_size,
-                        const uint8_t *in_buf, int buf_size)
+                        AVPacket *avpkt)
 {
+    const uint8_t *in_buf = avpkt->data;
+    int buf_size = avpkt->size;
     SgiState *s = avctx->priv_data;
     AVFrame *picture = data;
     AVFrame *p = &s->picture;
@@ -263,6 +265,6 @@ AVCodec sgi_decoder = {
     NULL,
     sgi_end,
     decode_frame,
-    .long_name = "SGI image",
+    .long_name = NULL_IF_CONFIG_SMALL("SGI image"),
 };