]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/dolby_e_parser: Remove unused ParseContext
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 26 Jan 2021 13:48:01 +0000 (14:48 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 30 Jan 2021 04:14:45 +0000 (05:14 +0100)
Parsers are not forced to use a ParseContext and the other stuff from
parser.h which is just designed to help parsers recombining frames. But
this parser does not do this at all, i.e. the ParseContext is unused.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/dolby_e_parser.c

index 2c116179063f9e1ffc11ff6867b094439d7d4961..b7e5db4e6fed40dae15c5f6292ad06d4dacc95b2 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#include "parser.h"
-
 #include "dolby_e.h"
 #include "get_bits.h"
 #include "put_bits.h"
 
 typedef struct DBEParseContext {
-    ParseContext pc;
     DBEContext dectx;
 
     DolbyEHeaderInfo metadata;
@@ -74,5 +71,4 @@ AVCodecParser ff_dolby_e_parser = {
     .codec_ids      = { AV_CODEC_ID_DOLBY_E },
     .priv_data_size = sizeof(DBEParseContext),
     .parser_parse   = dolby_e_parse,
-    .parser_close   = ff_parse_close,
 };