Unified · Split
| @@ -89,12 +89,12 @@ error: · 88 unmodified lines | |||
| 89 | return AVERROR(ENOMEM); | 89 | return AVERROR(ENOMEM); |
| 90 | } | 90 | } |
| 91 | 91 | ||
| 92 | int ff_ccfifo_getoutputsize(CCFifo *ccf) | 92 | int ff_ccfifo_getoutputsize(const CCFifo *ccf) |
| 93 | { | 93 | { |
| 94 | return ccf->expected_cc_count * CC_BYTES_PER_ENTRY; | 94 | return ccf->expected_cc_count * CC_BYTES_PER_ENTRY; |
| 95 | } | 95 | } |
| 96 | 96 | ||
| 97 | int ff_ccfifo_ccdetected(CCFifo *ccf) | 97 | int ff_ccfifo_ccdetected(const CCFifo *ccf) |
| 98 | { | 98 | { |
| 99 | return ccf->cc_detected; | 99 | return ccf->cc_detected; |
| 100 | } | 100 | } |
| @@ -88,7 +88,7 @@ int ff_ccfifo_extractbytes(CCFifo *ccf, uint8_t *data, size_t len); · 87 unmodified lines | |||
| 88 | * an appropriately sized buffer and pass it to ff_ccfifo_injectbytes() | 88 | * an appropriately sized buffer and pass it to ff_ccfifo_injectbytes() |
| 89 | * | 89 | * |
| 90 | */ | 90 | */ |
| 91 | int ff_ccfifo_getoutputsize(CCFifo *ccf); | 91 | int ff_ccfifo_getoutputsize(const CCFifo *ccf); |
| 92 | 92 | ||
| 93 | /** | 93 | /** |
| 94 | * Insert CC data from the FIFO into an AVFrame (as side data) | 94 | * 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); · 18 unmodified lines | |||
| 113 | * Returns 1 if captions have been found as a prior call | 113 | * Returns 1 if captions have been found as a prior call |
| 114 | * to ff_ccfifo_extract() or ff_ccfifo_extractbytes() | 114 | * to ff_ccfifo_extract() or ff_ccfifo_extractbytes() |
| 115 | */ | 115 | */ |
| 116 | int ff_ccfifo_ccdetected(CCFifo *ccf); | 116 | int ff_ccfifo_ccdetected(const CCFifo *ccf); |
| 117 | 117 | ||
| 118 | #endif /* AVFILTER_CCFIFO_H */ | 118 | #endif /* AVFILTER_CCFIFO_H */ |