improved including in few files

This commit is contained in:
Martin Pulec
2024-10-11 15:41:55 +02:00
parent c96a167d08
commit fd08c583eb
3 changed files with 26 additions and 32 deletions

View File

@@ -35,11 +35,8 @@
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#include "config_unix.h"
#include "config_win32.h"
#endif // HAVE_CONFIG_H
#include "control_socket.h"
#include "compat/platform_pipe.h"

View File

@@ -55,30 +55,30 @@
*
*/
#include "config.h"
#include "config_unix.h"
#include "config_win32.h"
#include <inttypes.h>
#include <stdint.h>
#include "debug.h"
#include "host.h"
#include "pdb.h"
#include "video_display.h"
#include "video_codec.h"
#include "ntp.h"
#include "tv.h"
#include "rtp/rtp.h"
#include "rtp/pbuf.h"
#include "rtp/rtp_callback.h"
#include "tfrc.h"
#include <assert.h> // for assert
#include <inttypes.h> // for uint32_t, PRIx32
#include <stdio.h> // for printf
#include <stdlib.h> // for free, NULL, calloc
#include <string.h> // for strncmp, strncpy
#include "debug.h" // for debug_msg, log_msg, LOG_LEVEL_INFO
#include "ntp.h" // for ntp64_time, ntp64_to_ntp32
#include "pdb.h" // for pdb_e, pdb_get, pdb_add, pdb_destroy_item
#include "rtp/pbuf.h" // for pbuf_insert
#include "rtp/rtp.h" // for rtp_my_ssrc, rtcp_rr, rtcp_app, rtcp_sdes_item
#include "tfrc.h" // for tfrc_recv_data
#include "tv.h" // for get_time_in_ns
struct pdb;
struct rtp;
extern char *frame;
char hdr_buf[100];
struct msghdr msg;
struct iovec iov[10];
// struct msghdr msg;
// struct iovec iov[10];
extern uint32_t RTT;

View File

@@ -44,19 +44,16 @@
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#include "config_unix.h"
#include "config_win32.h"
#endif // HAVE_CONFIG_H
#include <stddef.h>
#include <stdint.h>
#include "debug.h"
#include "rtp/rtpdec_h264.h"
#include "rtp/rtpenc_h264.h"
#include <stddef.h> // for NULL
#include <stdint.h> // for uint32_t
#include <stdio.h> // for snprintf
#include "debug.h" // for debug_msg
#include "rtp/rtpdec_h264.h" // for nal_type, aux_nal_types, NALU_HDR_GET_TYPE
static uint32_t get4Bytes(const unsigned char *ptr) {
return (ptr[0] << 24) | (ptr[1] << 16) | (ptr[2] << 8) | ptr[3];
}