1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-11-23 21:54:53 +02:00

avcodec: Remove unnecessary parser.h inclusions

It only contains declarations for some auxiliary functions for parsing
that parsers that only work with complete packets don't need.

Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-10-26 09:33:25 +01:00
parent 633d424b1b
commit 12f7a7724d
7 changed files with 9 additions and 10 deletions

View File

@@ -24,9 +24,9 @@
#include "libavutil/avassert.h" #include "libavutil/avassert.h"
#include "av1_parse.h" #include "av1_parse.h"
#include "avcodec.h"
#include "cbs.h" #include "cbs.h"
#include "cbs_av1.h" #include "cbs_av1.h"
#include "parser.h"
typedef struct AV1ParseContext { typedef struct AV1ParseContext {
CodedBitstreamContext *cbc; CodedBitstreamContext *cbc;

View File

@@ -28,7 +28,7 @@
#include <stdint.h> #include <stdint.h>
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "parser.h" #include "avcodec.h"
typedef struct CookParseContext { typedef struct CookParseContext {
int duration; int duration;

View File

@@ -23,7 +23,7 @@
* Determines the duration for each packet. * Determines the duration for each packet.
*/ */
#include "parser.h" #include "avcodec.h"
#include "dvaudio.h" #include "dvaudio.h"
static int dvaudio_parse(AVCodecParserContext *s1, AVCodecContext *avctx, static int dvaudio_parse(AVCodecParserContext *s1, AVCodecContext *avctx,

View File

@@ -18,9 +18,9 @@
* License along with FFmpeg; if not, write to the Free Software * License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "avcodec.h" #include "avcodec.h"
#include "get_bits.h" #include "libavutil/intreadwrite.h"
#include "parser.h"
#define PCI_SIZE 980 #define PCI_SIZE 980
#define DSI_SIZE 1018 #define DSI_SIZE 1018

View File

@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "parser.h" #include "avcodec.h"
static int parse(AVCodecParserContext *s, static int parse(AVCodecParserContext *s,
AVCodecContext *avctx, AVCodecContext *avctx,

View File

@@ -21,9 +21,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "libavutil/intreadwrite.h" #include "avcodec.h"
#include "libavcodec/get_bits.h" #include "get_bits.h"
#include "parser.h"
static int parse(AVCodecParserContext *ctx, static int parse(AVCodecParserContext *ctx,
AVCodecContext *avctx, AVCodecContext *avctx,

View File

@@ -21,7 +21,7 @@
* XMA2 audio parser * XMA2 audio parser
*/ */
#include "parser.h" #include "avcodec.h"
typedef struct XMAParserContext{ typedef struct XMAParserContext{
int skip_packets; int skip_packets;