]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/blobdiff - libavcodec/sgidec.c
frsh: Export information about the last RTP contract and VRES
[frescor/ffmpeg.git] / libavcodec / sgidec.c
index 5a85cdcdd03bf6d64024d1abb74a38acac162ef6..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;
@@ -235,7 +237,7 @@ static int decode_frame(AVCodecContext *avctx,
     }
 }
 
-static int sgi_init(AVCodecContext *avctx){
+static av_cold int sgi_init(AVCodecContext *avctx){
     SgiState *s = avctx->priv_data;
 
     avcodec_get_frame_defaults(&s->picture);
@@ -244,7 +246,7 @@ static int sgi_init(AVCodecContext *avctx){
     return 0;
 }
 
-static int sgi_end(AVCodecContext *avctx)
+static av_cold int sgi_end(AVCodecContext *avctx)
 {
     SgiState * const s = avctx->priv_data;
 
@@ -263,5 +265,6 @@ AVCodec sgi_decoder = {
     NULL,
     sgi_end,
     decode_frame,
+    .long_name = NULL_IF_CONFIG_SMALL("SGI image"),
 };