[FFmpeg-cvslog] avfilter/ccfifo: constify some parameters

James Almer git at videolan.org
Sat May 13 04:34:03 EEST 2023


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri May 12 22:33:16 2023 -0300| [8564b4ab057346cca142b69676116bcb74842161] | committer: James Almer

avfilter/ccfifo: constify some parameters

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

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

 libavfilter/ccfifo.c | 4 ++--
 libavfilter/ccfifo.h | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavfilter/ccfifo.c b/libavfilter/ccfifo.c
index f39dbc1740..6ae61a4b15 100644
--- a/libavfilter/ccfifo.c
+++ b/libavfilter/ccfifo.c
@@ -89,12 +89,12 @@ error:
     return AVERROR(ENOMEM);
 }
 
-int ff_ccfifo_getoutputsize(CCFifo *ccf)
+int ff_ccfifo_getoutputsize(const CCFifo *ccf)
 {
     return ccf->expected_cc_count * CC_BYTES_PER_ENTRY;
 }
 
-int ff_ccfifo_ccdetected(CCFifo *ccf)
+int ff_ccfifo_ccdetected(const CCFifo *ccf)
 {
     return ccf->cc_detected;
 }
diff --git a/libavfilter/ccfifo.h b/libavfilter/ccfifo.h
index a380f67b52..a3c302b6b2 100644
--- a/libavfilter/ccfifo.h
+++ b/libavfilter/ccfifo.h
@@ -88,7 +88,7 @@ int ff_ccfifo_extractbytes(CCFifo *ccf, uint8_t *data, size_t len);
  * an appropriately sized buffer and pass it to ff_ccfifo_injectbytes()
  *
  */
-int ff_ccfifo_getoutputsize(CCFifo *ccf);
+int ff_ccfifo_getoutputsize(const CCFifo *ccf);
 
 /**
  * Insert CC data from the FIFO into an AVFrame (as side data)
@@ -113,6 +113,6 @@ int ff_ccfifo_injectbytes(CCFifo *ccf, uint8_t *data, size_t len);
  * Returns 1 if captions have been found as a prior call
  * to ff_ccfifo_extract() or ff_ccfifo_extractbytes()
  */
-int ff_ccfifo_ccdetected(CCFifo *ccf);
+int ff_ccfifo_ccdetected(const CCFifo *ccf);
 
 #endif /* AVFILTER_CCFIFO_H */



More information about the ffmpeg-cvslog mailing list