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
89 return AVERROR(ENOMEM);89 return AVERROR(ENOMEM);
90}90}
91 91
92int ff_ccfifo_getoutputsize(CCFifo *ccf)92int 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
97int ff_ccfifo_ccdetected(CCFifo *ccf)97int ff_ccfifo_ccdetected(const CCFifo *ccf)
98{98{
99 return ccf->cc_detected;99 return ccf->cc_detected;
100}100}
libavfilter/ccfifo.h+2−2
@@ -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 */
91int ff_ccfifo_getoutputsize(CCFifo *ccf);91int 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 call113 * 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 */
116int ff_ccfifo_ccdetected(CCFifo *ccf);116int ff_ccfifo_ccdetected(const CCFifo *ccf);
117 117
118#endif /* AVFILTER_CCFIFO_H */118#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