Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
43b6c3eb
Commit
43b6c3eb
authored
May 27, 2011
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegts: Wrap #ifdef DEBUG and av_hex_dump_log() combination in a macro.
parent
a5514a84
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
internal.h
libavformat/internal.h
+6
-0
mpegts.c
libavformat/mpegts.c
+4
-9
No files found.
libavformat/internal.h
View file @
43b6c3eb
...
@@ -26,6 +26,12 @@
...
@@ -26,6 +26,12 @@
#define MAX_URL_SIZE 4096
#define MAX_URL_SIZE 4096
#ifdef DEBUG
# define hex_dump_debug(class, buf, size) av_hex_dump_log(class, AV_LOG_DEBUG, buf, size)
#else
# define hex_dump_debug(class, buf, size)
#endif
typedef
struct
AVCodecTag
{
typedef
struct
AVCodecTag
{
enum
CodecID
id
;
enum
CodecID
id
;
unsigned
int
tag
;
unsigned
int
tag
;
...
...
libavformat/mpegts.c
View file @
43b6c3eb
...
@@ -1014,10 +1014,8 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
...
@@ -1014,10 +1014,8 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
int
mp4_dec_config_descr_len
=
0
;
int
mp4_dec_config_descr_len
=
0
;
int
mp4_es_id
=
0
;
int
mp4_es_id
=
0
;
#ifdef DEBUG
av_dlog
(
ts
->
stream
,
"PMT: len %i
\n
"
,
section_len
);
av_dlog
(
ts
->
stream
,
"PMT: len %i
\n
"
,
section_len
);
av_hex_dump_log
(
ts
->
stream
,
AV_LOG_DEBUG
,
(
uint8_t
*
)
section
,
section_len
);
hex_dump_debug
(
ts
->
stream
,
(
uint8_t
*
)
section
,
section_len
);
#endif
p_end
=
section
+
section_len
-
4
;
p_end
=
section
+
section_len
-
4
;
p
=
section
;
p
=
section
;
...
@@ -1134,10 +1132,9 @@ static void pat_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
...
@@ -1134,10 +1132,9 @@ static void pat_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
const
uint8_t
*
p
,
*
p_end
;
const
uint8_t
*
p
,
*
p_end
;
int
sid
,
pmt_pid
;
int
sid
,
pmt_pid
;
#ifdef DEBUG
av_dlog
(
ts
->
stream
,
"PAT:
\n
"
);
av_dlog
(
ts
->
stream
,
"PAT:
\n
"
);
av_hex_dump_log
(
ts
->
stream
,
AV_LOG_DEBUG
,
(
uint8_t
*
)
section
,
section_len
);
hex_dump_debug
(
ts
->
stream
,
(
uint8_t
*
)
section
,
section_len
);
#endif
p_end
=
section
+
section_len
-
4
;
p_end
=
section
+
section_len
-
4
;
p
=
section
;
p
=
section
;
if
(
parse_section_header
(
h
,
&
p
,
p_end
)
<
0
)
if
(
parse_section_header
(
h
,
&
p
,
p_end
)
<
0
)
...
@@ -1178,10 +1175,8 @@ static void sdt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
...
@@ -1178,10 +1175,8 @@ static void sdt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
int
onid
,
val
,
sid
,
desc_list_len
,
desc_tag
,
desc_len
,
service_type
;
int
onid
,
val
,
sid
,
desc_list_len
,
desc_tag
,
desc_len
,
service_type
;
char
*
name
,
*
provider_name
;
char
*
name
,
*
provider_name
;
#ifdef DEBUG
av_dlog
(
ts
->
stream
,
"SDT:
\n
"
);
av_dlog
(
ts
->
stream
,
"SDT:
\n
"
);
av_hex_dump_log
(
ts
->
stream
,
AV_LOG_DEBUG
,
(
uint8_t
*
)
section
,
section_len
);
hex_dump_debug
(
ts
->
stream
,
(
uint8_t
*
)
section
,
section_len
);
#endif
p_end
=
section
+
section_len
-
4
;
p_end
=
section
+
section_len
-
4
;
p
=
section
;
p
=
section
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment