]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/bmp.c
Rewrite doxy for av_strtod().
[ffmpeg] / libavcodec / bmp.c
index 5de1c46b135a0c7bb605695ea0355622c9b45111..cadaeee543e57b50cdf8cee38c6c8836f00cfde1 100644 (file)
@@ -35,8 +35,10 @@ static av_cold int bmp_decode_init(AVCodecContext *avctx){
 
 static int bmp_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;
     BMPContext *s = avctx->priv_data;
     AVFrame *picture = data;
     AVFrame *p = &s->picture;
@@ -323,5 +325,6 @@ AVCodec bmp_decoder = {
     NULL,
     bmp_decode_end,
     bmp_decode_frame,
+    CODEC_CAP_DR1,
     .long_name = NULL_IF_CONFIG_SMALL("BMP image"),
 };