Skip to content

Commit

Permalink
improved including in few files
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPulec committed Oct 11, 2024
1 parent c96a167 commit fd08c58
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 31 deletions.
3 changes: 0 additions & 3 deletions src/control_socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
36 changes: 18 additions & 18 deletions src/rtp/rtp_callback.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,30 +55,30 @@
*
*/

#include "config.h"
#include "config_unix.h"
#include "config_win32.h"
#include "rtp/rtp_callback.h"

#include <inttypes.h>
#include <stdint.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"
#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 "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;

Expand Down
17 changes: 7 additions & 10 deletions src/rtp/rtpenc_h264.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit fd08c58

Please sign in to comment.