Browse code

lavc: use avpriv_ prefix for ff_split_xiph_headers.

It's used in lavf.

Anton Khirnov authored on 2011/10/17 16:45:27
Showing 7 changed files
... ...
@@ -987,7 +987,7 @@ static av_cold int vorbis_decode_init(AVCodecContext *avccontext)
987 987
         return -1;
988 988
     }
989 989
 
990
-    if (ff_split_xiph_headers(headers, headers_len, 30, header_start, header_len) < 0) {
990
+    if (avpriv_split_xiph_headers(headers, headers_len, 30, header_start, header_len) < 0) {
991 991
         av_log(avccontext, AV_LOG_ERROR, "Extradata corrupt.\n");
992 992
         return -1;
993 993
     }
... ...
@@ -2275,7 +2275,7 @@ static av_cold int theora_decode_init(AVCodecContext *avctx)
2275 2275
         return -1;
2276 2276
     }
2277 2277
 
2278
-    if (ff_split_xiph_headers(avctx->extradata, avctx->extradata_size,
2278
+    if (avpriv_split_xiph_headers(avctx->extradata, avctx->extradata_size,
2279 2279
                               42, header_start, header_len) < 0) {
2280 2280
         av_log(avctx, AV_LOG_ERROR, "Corrupt extradata\n");
2281 2281
         return -1;
... ...
@@ -21,7 +21,7 @@
21 21
 #include "libavutil/intreadwrite.h"
22 22
 #include "xiph.h"
23 23
 
24
-int ff_split_xiph_headers(uint8_t *extradata, int extradata_size,
24
+int avpriv_split_xiph_headers(uint8_t *extradata, int extradata_size,
25 25
                           int first_header_size, uint8_t *header_start[3],
26 26
                           int header_len[3])
27 27
 {
... ...
@@ -36,8 +36,8 @@
36 36
  * @param[out] header_len The sizes of each of the three headers.
37 37
  * @return On error a negative value is returned, on success zero.
38 38
  */
39
-int ff_split_xiph_headers(uint8_t *extradata, int extradata_size,
40
-                          int first_header_size, uint8_t *header_start[3],
41
-                          int header_len[3]);
39
+int avpriv_split_xiph_headers(uint8_t *extradata, int extradata_size,
40
+                              int first_header_size, uint8_t *header_start[3],
41
+                              int header_len[3]);
42 42
 
43 43
 #endif /* AVCODEC_XIPH_H */
... ...
@@ -423,7 +423,7 @@ static int put_xiph_codecpriv(AVFormatContext *s, AVIOContext *pb, AVCodecContex
423 423
     else
424 424
         first_header_size = 42;
425 425
 
426
-    if (ff_split_xiph_headers(codec->extradata, codec->extradata_size,
426
+    if (avpriv_split_xiph_headers(codec->extradata, codec->extradata_size,
427 427
                               first_header_size, header_start, header_len) < 0) {
428 428
         av_log(s, AV_LOG_ERROR, "Extradata corrupt.\n");
429 429
         return -1;
... ...
@@ -377,7 +377,7 @@ static int ogg_write_header(AVFormatContext *s)
377 377
             int header_type = st->codec->codec_id == CODEC_ID_VORBIS ? 3 : 0x81;
378 378
             int framing_bit = st->codec->codec_id == CODEC_ID_VORBIS ? 1 : 0;
379 379
 
380
-            if (ff_split_xiph_headers(st->codec->extradata, st->codec->extradata_size,
380
+            if (avpriv_split_xiph_headers(st->codec->extradata, st->codec->extradata_size,
381 381
                                       st->codec->codec_id == CODEC_ID_VORBIS ? 30 : 42,
382 382
                                       oggstream->header, oggstream->header_len) < 0) {
383 383
                 av_log(s, AV_LOG_ERROR, "Extradata corrupted\n");
... ...
@@ -252,7 +252,7 @@ static char *xiph_extradata2config(AVCodecContext *c)
252 252
         return NULL;
253 253
     }
254 254
 
255
-    if (ff_split_xiph_headers(c->extradata, c->extradata_size,
255
+    if (avpriv_split_xiph_headers(c->extradata, c->extradata_size,
256 256
                               first_header_size, header_start,
257 257
                               header_len) < 0) {
258 258
         av_log(c, AV_LOG_ERROR, "Extradata corrupt.\n");