]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/aac_parser.c
Synchronize AAC encoder with renamings in aac.h
[ffmpeg] / libavcodec / aac_parser.c
index a2e95f7bb15d59fe804029e34fb849e527e37e5b..db2c697725d6edcd5799032c16edb789b37f82c0 100644 (file)
@@ -27,7 +27,8 @@
 
 #define AAC_HEADER_SIZE 7
 
-static int aac_sync(uint64_t state, AACAC3ParseContext *hdr_info)
+static int aac_sync(uint64_t state, AACAC3ParseContext *hdr_info,
+        int *need_next_header, int *new_frame_start)
 {
     GetBitContext bits;
     int size, rdb, ch, sr;
@@ -67,6 +68,8 @@ static int aac_sync(uint64_t state, AACAC3ParseContext *hdr_info)
     hdr_info->samples = (rdb + 1) * 1024;
     hdr_info->bit_rate = size * 8 * hdr_info->sample_rate / hdr_info->samples;
 
+    *need_next_header = 0;
+    *new_frame_start  = 1;
     return size;
 }