mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/ccfifo: constify some parameters
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
e65f03ca13
commit
8564b4ab05
|
@ -89,12 +89,12 @@ error:
|
||||||
return AVERROR(ENOMEM);
|
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;
|
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;
|
return ccf->cc_detected;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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()
|
* 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)
|
* 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
|
* Returns 1 if captions have been found as a prior call
|
||||||
* to ff_ccfifo_extract() or ff_ccfifo_extractbytes()
|
* 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 */
|
#endif /* AVFILTER_CCFIFO_H */
|
||||||
|
|
Loading…
Reference in New Issue