Skip to content

Commit

Permalink
Clean up #includes in cmdutils.h.
Browse files Browse the repository at this point in the history
inttypes.h is not necessary, just stdint.h is enough.
Unconditionally #include avfilter.h in cmdutils.h.  It is an installed
header with no non-standard external dependencies, so it is safe.
  • Loading branch information
DonDiego committed May 19, 2011
1 parent a2077b8 commit ea91e77
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions cmdutils.h
Expand Up @@ -22,8 +22,10 @@
#ifndef FFMPEG_CMDUTILS_H
#define FFMPEG_CMDUTILS_H

#include <inttypes.h>
#include <stdint.h>

#include "libavcodec/avcodec.h"
#include "libavfilter/avfilter.h"
#include "libavformat/avformat.h"
#include "libswscale/swscale.h"

Expand Down Expand Up @@ -278,9 +280,6 @@ int64_t guess_correct_pts(PtsCorrectionContext *ctx, int64_t pts, int64_t dts);
FILE *get_preset_file(char *filename, size_t filename_size,
const char *preset_name, int is_path, const char *codec_name);

#if CONFIG_AVFILTER
#include "libavfilter/avfilter.h"

typedef struct {
enum PixelFormat pix_fmt;
} FFSinkContext;
Expand All @@ -296,6 +295,4 @@ extern AVFilter ffsink;
int get_filtered_video_frame(AVFilterContext *sink, AVFrame *frame,
AVFilterBufferRef **picref, AVRational *pts_tb);

#endif /* CONFIG_AVFILTER */

#endif /* FFMPEG_CMDUTILS_H */

0 comments on commit ea91e77

Please sign in to comment.