avfilter/ccfifo: constify some parameters

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2023-05-12 22:33:16 -03:00
parent e65f03ca13
commit 8564b4ab05
2 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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 */