[FFmpeg-devel] avdevice/decklink_dec: make some function static

Submitted by James Almer on Nov. 9, 2017, 3:20 a.m.

Details

Message ID 20171109032039.6704-1-jamrial@gmail.com
State New
Headers show

Commit Message

James Almer Nov. 9, 2017, 3:20 a.m.
Should fix ticket #6822

Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavdevice/decklink_dec.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Comments

James Almer Nov. 9, 2017, 6:46 p.m.
On 11/9/2017 2:07 AM, Aaron Levinson wrote:
> On 11/8/2017 7:20 PM, James Almer wrote:
>> Should fix ticket #6822
>>
>> Signed-off-by: James Almer <jamrial@gmail.com>
>> ---
>>   libavdevice/decklink_dec.cpp | 8 ++++----
>>   1 file changed, 4 insertions(+), 4 deletions(-)
>>
>> diff --git a/libavdevice/decklink_dec.cpp b/libavdevice/decklink_dec.cpp
>> index 191547ff10..e90b42811a 100644
>> --- a/libavdevice/decklink_dec.cpp
>> +++ b/libavdevice/decklink_dec.cpp
>> @@ -262,8 +262,8 @@ static uint8_t*
>> teletext_data_unit_from_ancillary_packet(uint16_t *py, uint16_t
>>       return tgt;
>>   }
>>   -uint8_t *vanc_to_cc(AVFormatContext *avctx, uint16_t *buf, size_t
>> words,
>> -    unsigned &cc_count)
>> +static uint8_t *vanc_to_cc(AVFormatContext *avctx, uint16_t *buf,
>> size_t words,
>> +                           unsigned &cc_count)
>>   {
>>       size_t i, len = (buf[5] & 0xff) + 6 + 1;
>>       uint8_t cdp_sum, rate;
>> @@ -352,8 +352,8 @@ uint8_t *vanc_to_cc(AVFormatContext *avctx,
>> uint16_t *buf, size_t words,
>>       return cc;
>>   }
>>   -uint8_t *get_metadata(AVFormatContext *avctx, uint16_t *buf, size_t
>> width,
>> -                      uint8_t *tgt, size_t tgt_size, AVPacket *pkt)
>> +static uint8_t *get_metadata(AVFormatContext *avctx, uint16_t *buf,
>> size_t width,
>> +                             uint8_t *tgt, size_t tgt_size, AVPacket
>> *pkt)
>>   {
>>       decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data;
>>       uint16_t *max_buf = buf + width;
>>
> 
> LGTM

Pushed, thanks.

Patch hide | download patch | download mbox

diff --git a/libavdevice/decklink_dec.cpp b/libavdevice/decklink_dec.cpp
index 191547ff10..e90b42811a 100644
--- a/libavdevice/decklink_dec.cpp
+++ b/libavdevice/decklink_dec.cpp
@@ -262,8 +262,8 @@  static uint8_t* teletext_data_unit_from_ancillary_packet(uint16_t *py, uint16_t
     return tgt;
 }
 
-uint8_t *vanc_to_cc(AVFormatContext *avctx, uint16_t *buf, size_t words,
-    unsigned &cc_count)
+static uint8_t *vanc_to_cc(AVFormatContext *avctx, uint16_t *buf, size_t words,
+                           unsigned &cc_count)
 {
     size_t i, len = (buf[5] & 0xff) + 6 + 1;
     uint8_t cdp_sum, rate;
@@ -352,8 +352,8 @@  uint8_t *vanc_to_cc(AVFormatContext *avctx, uint16_t *buf, size_t words,
     return cc;
 }
 
-uint8_t *get_metadata(AVFormatContext *avctx, uint16_t *buf, size_t width,
-                      uint8_t *tgt, size_t tgt_size, AVPacket *pkt)
+static uint8_t *get_metadata(AVFormatContext *avctx, uint16_t *buf, size_t width,
+                             uint8_t *tgt, size_t tgt_size, AVPacket *pkt)
 {
     decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data;
     uint16_t *max_buf = buf + width;