Skip to content

Commit

Permalink
removed debug.h from lavc_common.h
Browse files Browse the repository at this point in the history
not needed here, better include in source files
  • Loading branch information
MartinPulec committed Mar 4, 2024
1 parent b79b5b4 commit aa42b46
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 13 deletions.
1 change: 1 addition & 0 deletions src/hwaccel_libav_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
#include "config_win32.h"
#endif

#include "debug.h"
#include "hwaccel_libav_common.h"
#include "libavcodec/lavc_common.h"
#include "types.h"
Expand Down
1 change: 1 addition & 0 deletions src/libavcodec/from_lavc_vid_conv.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@

#include "color.h"
#include "compat/qsort_s.h"
#include "debug.h"
#include "host.h"
#include "hwaccel_rpi4.h"
#include "hwaccel_vdpau.h"
Expand Down
1 change: 1 addition & 0 deletions src/libavcodec/lavc_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
#include <stdbool.h>
#include <stdint.h>

#include "debug.h"
#include "host.h"
#include "libavcodec/lavc_common.h"
#include <libavutil/channel_layout.h>
Expand Down
1 change: 0 additions & 1 deletion src/libavcodec/lavc_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
#define LAVC_COMMON_H_C9D57362_067F_45AD_A491_A8084A39E675

#include "audio/types.h"
#include "debug.h"
#include "types.h"

#ifdef __cplusplus
Expand Down
7 changes: 1 addition & 6 deletions src/libavcodec/lavc_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,7 @@
* Some conversions to RGBA ignore RGB-shifts - either fix that or deprecate RGB-shifts
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#include "config_unix.h"
#include "config_win32.h"
#endif // HAVE_CONFIG_H

#include "debug.h"
#include "lib_common.h"
#include "libavcodec/lavc_common.h"
#include "libavcodec/lavc_video.h"
Expand Down
9 changes: 3 additions & 6 deletions src/libavcodec/to_lavc_vid_conv.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,15 @@

#define __STDC_WANT_LIB_EXT1__ 1 // qsort_s

#ifdef HAVE_CONFIG_H
#include "config.h"
#include "config_unix.h"
#include "config_win32.h"
#endif // HAVE_CONFIG_H

#include <assert.h>
#include <stdbool.h>
#include <stdint.h>

#include "color.h"
#include "compat/qsort_s.h"
#include "config_unix.h" // htonl
#include "config_win32.h" // -||-
#include "debug.h"
#include "host.h"
#include "libavcodec/to_lavc_vid_conv.h"
#include "utils/macros.h" // OPTIMIZED_FOR
Expand Down

0 comments on commit aa42b46

Please sign in to comment.