summaryrefslogtreecommitdiff
path: root/libavformat/adtsenc.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2017-03-16 17:34:12 +0100
committerDiego Biurrun <diego@biurrun.de>2017-04-28 13:47:20 +0200
commit831018b0bbe26a603802a9022472f714a59293be (patch)
treebeddfc357bcd8d1c8236ec60a993a6a5f2931c80 /libavformat/adtsenc.c
parente1c2453a4fac1f7116244d0d05310935c20887e6 (diff)
downloadffmpeg-831018b0bbe26a603802a9022472f714a59293be.tar.gz
mpeg4audio: Make avpriv_copy_pce_data() inline
The function currently accepts a PutBitContext and a GetBitContext, which hardcodes their sizes into the lavc ABI. Since the function is quite small and only called in a few places, the simplest solution is making it inline, thus avoiding a runtime dependency completely. Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diffstat (limited to 'libavformat/adtsenc.c')
-rw-r--r--libavformat/adtsenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/adtsenc.c b/libavformat/adtsenc.c
index e7c72d8c02..eac6e7f883 100644
--- a/libavformat/adtsenc.c
+++ b/libavformat/adtsenc.c
@@ -79,7 +79,7 @@ static int adts_decode_extradata(AVFormatContext *s, ADTSContext *adts, uint8_t
init_put_bits(&pb, adts->pce_data, MAX_PCE_SIZE);
put_bits(&pb, 3, 5); //ID_PCE
- adts->pce_size = (avpriv_copy_pce_data(&pb, &gb) + 3) / 8;
+ adts->pce_size = (ff_copy_pce_data(&pb, &gb) + 3) / 8;
flush_put_bits(&pb);
}