Skip to content

Commit

Permalink
libavcodec, libavdevice: Remove unnecessary includes of version.h
Browse files Browse the repository at this point in the history
xvmc.h used FF_API_* macros before, but they were removed in
1c63aed, leaving the include
unused.

The ones in android_camera.c and mediacodec_wrapper.c have been
added due to a misunderstanding, fixed in
c0bce36 and
13b77af.

The one in mediacodec.c seems to never have been used at all.

Signed-off-by: Martin Storsjö <[email protected]>
  • Loading branch information
mstorsjo committed Feb 24, 2022
1 parent 6f04b43 commit 17ab836
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion libavcodec/mediacodec.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@

#include "ffjni.h"
#include "mediacodecdec_common.h"
#include "version.h"

AVMediaCodecContext *av_mediacodec_alloc_context(void)
{
Expand Down
1 change: 0 additions & 1 deletion libavcodec/mediacodec_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@

#include "avcodec.h"
#include "ffjni.h"
#include "version.h"
#include "mediacodec_wrapper.h"

struct JNIAMediaCodecListFields {
Expand Down
1 change: 0 additions & 1 deletion libavcodec/xvmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include <X11/extensions/XvMC.h>

#include "libavutil/attributes.h"
#include "version.h"
#include "avcodec.h"

/**
Expand Down
2 changes: 0 additions & 2 deletions libavdevice/android_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@
#include "libavutil/threadmessage.h"
#include "libavutil/time.h"

#include "version.h"

/* This image format is available on all Android devices
* supporting the Camera2 API */
#define IMAGE_FORMAT_ANDROID AIMAGE_FORMAT_YUV_420_888
Expand Down

0 comments on commit 17ab836

Please sign in to comment.