]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/codec: use the correct name for all AVCodec.decode() parameters
authorJames Almer <jamrial@gmail.com>
Fri, 5 Mar 2021 04:01:08 +0000 (01:01 -0300)
committerJames Almer <jamrial@gmail.com>
Sun, 7 Mar 2021 14:21:57 +0000 (11:21 -0300)
This field hasn't been used to return the output frame size since
avcodec_decode_audio4() was introduced.

Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/codec.h

index 3d7a1f4c2606cae53cd5bdfc425191b87453219d..f96372f77a7426f71c276fc602ca6a9e0b9efcbe 100644 (file)
@@ -281,7 +281,8 @@ typedef struct AVCodec {
      */
     int (*encode2)(struct AVCodecContext *avctx, struct AVPacket *avpkt,
                    const struct AVFrame *frame, int *got_packet_ptr);
-    int (*decode)(struct AVCodecContext *, void *outdata, int *outdata_size, struct AVPacket *avpkt);
+    int (*decode)(struct AVCodecContext *avctx, void *outdata,
+                  int *got_frame_ptr, struct AVPacket *avpkt);
     int (*close)(struct AVCodecContext *);
     /**
      * Encode API with decoupled frame/packet dataflow. This function is called