History

avfilter/ccfifo: constify some parameters

James Almer committed 3 years ago

Commit 8564b4a1 parent e65f03c2 files · +4 −4Browse files

Unified · Split

2 files
  1. libavfilter/ccfifo.c +2 −2
  2. libavfilter/ccfifo.h +2 −2
libavfilter/ccfifo.c+2−2
@@ -89,12 +89,12 @@ error: · 88 unmodified lines
8989 return AVERROR(ENOMEM);
9090 }
9191
92−int ff_ccfifo_getoutputsize(CCFifo *ccf)
92+int ff_ccfifo_getoutputsize(const CCFifo *ccf)
9393 {
9494 return ccf->expected_cc_count * CC_BYTES_PER_ENTRY;
9595 }
9696
97−int ff_ccfifo_ccdetected(CCFifo *ccf)
97+int ff_ccfifo_ccdetected(const CCFifo *ccf)
9898 {
9999 return ccf->cc_detected;
100100 }
libavfilter/ccfifo.h+2−2
@@ -88,7 +88,7 @@ int ff_ccfifo_extractbytes(CCFifo *ccf, uint8_t *data, size_t len); · 87 unmodified lines
8888 * an appropriately sized buffer and pass it to ff_ccfifo_injectbytes()
8989 *
9090 */
91−int ff_ccfifo_getoutputsize(CCFifo *ccf);
91+int ff_ccfifo_getoutputsize(const CCFifo *ccf);
9292
9393 /**
9494 * 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
113113 * Returns 1 if captions have been found as a prior call
114114 * to ff_ccfifo_extract() or ff_ccfifo_extractbytes()
115115 */
116−int ff_ccfifo_ccdetected(CCFifo *ccf);
116+int ff_ccfifo_ccdetected(const CCFifo *ccf);
117117
118118 #endif /* AVFILTER_CCFIFO_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t