Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
1f6b9cc3
Commit
1f6b9cc3
authored
Jun 05, 2011
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace some nonstandard DEBUG_* preprocessor directives by plain DEBUG.
parent
f8ea0eb6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
17 deletions
+5
-17
ffplay.c
ffplay.c
+1
-4
dvbsubdec.c
libavcodec/dvbsubdec.c
+3
-4
h264_template_altivec.c
libavcodec/ppc/h264_template_altivec.c
+1
-2
rtspdec.c
libavformat/rtspdec.c
+0
-7
No files found.
ffplay.c
View file @
1f6b9cc3
...
...
@@ -56,9 +56,6 @@
const
char
program_name
[]
=
"ffplay"
;
const
int
program_birth_year
=
2003
;
//#define DEBUG
//#define DEBUG_SYNC
#define MAX_QUEUE_SIZE (15 * 1024 * 1024)
#define MIN_AUDIOQ_SIZE (20 * 16 * 1024)
#define MIN_FRAMES 5
...
...
@@ -2056,7 +2053,7 @@ static int audio_decode_frame(VideoState *is, double *pts_ptr)
n
=
2
*
dec
->
channels
;
is
->
audio_clock
+=
(
double
)
data_size
/
(
double
)(
n
*
dec
->
sample_rate
);
#if
defined(DEBUG_SYNC)
#if
def DEBUG
{
static
double
last_clock
;
printf
(
"audio: delay=%0.3f clock=%0.3f pts=%0.3f
\n
"
,
...
...
libavcodec/dvbsubdec.c
View file @
1f6b9cc3
...
...
@@ -26,7 +26,6 @@
//#define DEBUG
//#define DEBUG_PACKET_CONTENTS
//#define DEBUG_SAVE_IMAGES
#define DVBSUB_PAGE_SEGMENT 0x10
#define DVBSUB_REGION_SEGMENT 0x11
...
...
@@ -37,7 +36,7 @@
#define cm (ff_cropTbl + MAX_NEG_CROP)
#ifdef DEBUG
_SAVE_IMAGES
#ifdef DEBUG
#undef fprintf
#if 0
static void png_save(const char *filename, uint8_t *bitmap, int w, int h,
...
...
@@ -1174,7 +1173,7 @@ static void dvbsub_parse_page_segment(AVCodecContext *avctx,
}
#ifdef DEBUG
_SAVE_IMAGES
#ifdef DEBUG
static
void
save_display_set
(
DVBSubContext
*
ctx
)
{
DVBSubRegion
*
region
;
...
...
@@ -1387,7 +1386,7 @@ static int dvbsub_display_end_segment(AVCodecContext *avctx, const uint8_t *buf,
sub
->
num_rects
=
i
;
#ifdef DEBUG
_SAVE_IMAGES
#ifdef DEBUG
save_display_set
(
ctx
);
#endif
...
...
libavcodec/ppc/h264_template_altivec.c
View file @
1f6b9cc3
...
...
@@ -18,8 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
//#define DEBUG_ALIGNMENT
#ifdef DEBUG_ALIGNMENT
#ifdef DEBUG
#define ASSERT_ALIGNED(ptr) assert(((unsigned long)ptr&0x0000000F));
#else
#define ASSERT_ALIGNED(ptr) ;
...
...
libavformat/rtspdec.c
View file @
1f6b9cc3
...
...
@@ -31,9 +31,6 @@
#include "rdt.h"
#include "url.h"
//#define DEBUG
//#define DEBUG_RTP_TCP
static
int
rtsp_read_play
(
AVFormatContext
*
s
)
{
RTSPState
*
rt
=
s
->
priv_data
;
...
...
@@ -191,9 +188,7 @@ int ff_rtsp_tcp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st,
int
id
,
len
,
i
,
ret
;
RTSPStream
*
rtsp_st
;
#ifdef DEBUG_RTP_TCP
av_dlog
(
s
,
"tcp_read_packet:
\n
"
);
#endif
redo:
for
(;;)
{
RTSPMessageHeader
reply
;
...
...
@@ -212,9 +207,7 @@ redo:
return
-
1
;
id
=
buf
[
0
];
len
=
AV_RB16
(
buf
+
1
);
#ifdef DEBUG_RTP_TCP
av_dlog
(
s
,
"id=%d len=%d
\n
"
,
id
,
len
);
#endif
if
(
len
>
buf_size
||
len
<
12
)
goto
redo
;
/* get the data */
...
...
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