[FFmpeg-cvslog] avcodec/codec: use the correct name for all AVCodec.decode() parameters

James Almer git at videolan.org
Sun Mar 7 17:04:39 EET 2021


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri Mar  5 01:01:08 2021 -0300| [c063d556a8fa9dd4a019883939043c7825d45a7b] | committer: James Almer

avcodec/codec: use the correct name for all AVCodec.decode() parameters

This field hasn't been used to return the output frame size since
avcodec_decode_audio4() was introduced.

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c063d556a8fa9dd4a019883939043c7825d45a7b
---

 libavcodec/codec.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/codec.h b/libavcodec/codec.h
index 3d7a1f4c26..f96372f77a 100644
--- a/libavcodec/codec.h
+++ b/libavcodec/codec.h
@@ -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



More information about the ffmpeg-cvslog mailing list