summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2015-10-14 01:42:06 +0200
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2015-10-21 00:23:31 +0200
commit3dfb643cd40790629859e99d44bf888e41e58122 (patch)
tree64d8a1370d6e9dd43b0e440d77488dfa80fe4d2d
parent95687dc310ba91091c670273ceb31ae5219187bb (diff)
downloadffmpeg-streaming-3dfb643cd40790629859e99d44bf888e41e58122.zip
ffmpeg-streaming-3dfb643cd40790629859e99d44bf888e41e58122.tar.gz
avcodec: remove unused avpriv_ac3_parse_header
It was replaced by avpriv_ac3_parse_header2. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
-rw-r--r--libavcodec/ac3_parser.c9
-rw-r--r--libavcodec/ac3_parser.h2
2 files changed, 0 insertions, 11 deletions
diff --git a/libavcodec/ac3_parser.c b/libavcodec/ac3_parser.c
index 5ab5627..0dd98b9 100644
--- a/libavcodec/ac3_parser.c
+++ b/libavcodec/ac3_parser.c
@@ -151,15 +151,6 @@ int avpriv_ac3_parse_header2(GetBitContext *gbc, AC3HeaderInfo **phdr)
return 0;
}
-int avpriv_ac3_parse_header(GetBitContext *gbc, AC3HeaderInfo *hdr)
-{
- AC3HeaderInfo tmp, *ptmp = &tmp;
- int ret = avpriv_ac3_parse_header2(gbc, &ptmp);
-
- memcpy(hdr, ptmp, ((intptr_t)&tmp.channel_layout) - ((intptr_t)&tmp) + sizeof(uint64_t));
- return ret;
-}
-
static int ac3_sync(uint64_t state, AACAC3ParseContext *hdr_info,
int *need_next_header, int *new_frame_start)
{
diff --git a/libavcodec/ac3_parser.h b/libavcodec/ac3_parser.h
index f37387d..80bc5ef 100644
--- a/libavcodec/ac3_parser.h
+++ b/libavcodec/ac3_parser.h
@@ -39,6 +39,4 @@
*/
int avpriv_ac3_parse_header2(GetBitContext *gbc, AC3HeaderInfo **hdr);
-int avpriv_ac3_parse_header(GetBitContext *gbc, AC3HeaderInfo *hdr);
-
#endif /* AVCODEC_AC3_PARSER_H */
OpenPOWER on IntegriCloud