[FFmpeg-devel] libavformat/flvenc: Use avpriv_mpeg4audio_sample_rates

Submitted by Andreas Rheinhardt on June 20, 2019, 12:09 a.m.

Details

Message ID 20190620000927.16521-1-andreas.rheinhardt@gmail.com
State New
Headers show

Commit Message

Andreas Rheinhardt June 20, 2019, 12:09 a.m.
Up until now flvenc.c included aacenctab.h which included
mpeg4audio_sample_rates (a clone of avpriv_mpeg4audio_sample_rates) as
static const array. But given that avpriv_mpeg4audio_sample_rates is
avpriv, it can be used instead.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
---
 libavformat/flvenc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c
index e4863f1fc7..01873e5c5a 100644
--- a/libavformat/flvenc.c
+++ b/libavformat/flvenc.c
@@ -33,7 +33,7 @@ 
 #include "metadata.h"
 #include "libavutil/opt.h"
 #include "libavcodec/put_bits.h"
-#include "libavcodec/aacenctab.h"
+#include "libavcodec/mpeg4audio.h"
 
 
 static const AVCodecTag flv_video_codec_ids[] = {
@@ -514,7 +514,7 @@  static void flv_write_codec_header(AVFormatContext* s, AVCodecParameters* par, i
                 for (samplerate_index = 0; samplerate_index < 16;
                         samplerate_index++)
                     if (flv->audio_par->sample_rate
-                            == mpeg4audio_sample_rates[samplerate_index])
+                            == avpriv_mpeg4audio_sample_rates[samplerate_index])
                         break;
 
                 init_put_bits(&pbc, data, sizeof(data));