[bTSstream-devel] [Git][videolan/bitstream][master] Fix various build failures
Kieran Kunhya
gitlab at videolan.org
Sat Jul 18 00:39:07 CEST 2020
Kieran Kunhya pushed to branch master at VideoLAN / bitstream
Commits:
811a75ee by Kieran Kunhya at 2020-07-17T23:36:47+01:00
Fix various build failures
- - - - -
3 changed files:
- Makefile
- examples/Makefile
- ietf/rtp2435.h
Changes:
=====================================
Makefile
=====================================
@@ -70,7 +70,7 @@ HEADER_LIST = $$(find * -name '*.h')
FLAGS = -I. -Werror -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wformat=2
-compiler_c = $(CC) $(FLAGS) $(CFLAGS)
+compiler_c = $(CC) $(FLAGS) $(CFLAGS) -std=gnu99
compiler_c++ = $(CXX) $(FLAGS) $(CXXFLAGS)
compile = $(compiler_$1) -include "$$header" -c -x $1 /dev/null -o /dev/null
=====================================
examples/Makefile
=====================================
@@ -1,7 +1,7 @@
PREFIX ?= /usr/local
WARN = -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare
CPPFLAGS = -I. -I.. -I../..
-CFLAGS := $(WARN) -O2 -g $(CFLAGS)
+CFLAGS := $(WARN) -O2 -g -std=gnu99 $(CFLAGS)
OBJ = dvb_print_si dvb_gen_si dvb_ecmg dvb_ecmg_test mpeg_print_pcr rtp_check_seqnum mpeg_restamp
ifeq "$(shell uname -s)" "Linux"
=====================================
ietf/rtp2435.h
=====================================
@@ -31,6 +31,10 @@
#ifndef __BITSTREAM_IETF_RTP2435_H__
#define __BITSTREAM_IETF_RTP2435_H__
+#include <stdio.h>
+#include <stdint.h>
+#include <stdbool.h>
+
#ifdef __cplusplus
extern "C"
{
@@ -125,7 +129,7 @@ static inline uint8_t *rtp2435_restart(uint8_t *header)
static inline uint8_t *rtp2435_quantization_table(uint8_t *header)
{
uint8_t q = rtp2435_get_q(header);
- if (128 <= q && q <= 255) {
+ if (128 <= q) {
uint8_t *p;
if ((p = rtp2435_restart(header)))
return p + RTP_2435_RESTART_HEADER_SIZE;
View it on GitLab: https://code.videolan.org/videolan/bitstream/-/commit/811a75ee84d570cf9b3751cdd29d2b32046056fa
--
View it on GitLab: https://code.videolan.org/videolan/bitstream/-/commit/811a75ee84d570cf9b3751cdd29d2b32046056fa
You're receiving this email because of your account on code.videolan.org.
More information about the biTStream-devel
mailing list