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
ca1e5eea
Commit
ca1e5eea
authored
Jan 03, 2016
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove some pointless TRACE level debug code
This also kills some warnings with certain compiler options.
parent
07eea5a5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
41 deletions
+0
-41
avidec.c
libavformat/avidec.c
+0
-17
ipmovie.c
libavformat/ipmovie.c
+0
-3
mov.c
libavformat/mov.c
+0
-6
nsvdec.c
libavformat/nsvdec.c
+0
-15
No files found.
libavformat/avidec.c
View file @
ca1e5eea
...
...
@@ -1238,17 +1238,6 @@ resync:
// pkt->dts += ast->start;
if
(
ast
->
sample_size
)
pkt
->
dts
/=
ast
->
sample_size
;
av_log
(
s
,
AV_LOG_TRACE
,
"dts:%"
PRId64
" offset:%"
PRId64
" %d/%d smpl_siz:%d "
"base:%d st:%d size:%d
\n
"
,
pkt
->
dts
,
ast
->
frame_offset
,
ast
->
scale
,
ast
->
rate
,
ast
->
sample_size
,
AV_TIME_BASE
,
avi
->
stream_index
,
size
);
pkt
->
stream_index
=
avi
->
stream_index
;
if
(
st
->
codecpar
->
codec_type
==
AVMEDIA_TYPE_VIDEO
)
{
...
...
@@ -1453,12 +1442,6 @@ static int avi_load_index(AVFormatContext *s)
break
;
tag
=
avio_rl32
(
pb
);
size
=
avio_rl32
(
pb
);
av_log
(
s
,
AV_LOG_TRACE
,
"tag=%c%c%c%c size=0x%x
\n
"
,
tag
&
0xff
,
(
tag
>>
8
)
&
0xff
,
(
tag
>>
16
)
&
0xff
,
(
tag
>>
24
)
&
0xff
,
size
);
if
(
tag
==
MKTAG
(
'i'
,
'd'
,
'x'
,
'1'
)
&&
avi_read_idx1
(
s
,
size
)
>=
0
)
{
...
...
libavformat/ipmovie.c
View file @
ca1e5eea
...
...
@@ -332,9 +332,6 @@ static int process_ipmovie_chunk(IPMVEContext *s, AVIOContext *pb,
break
;
}
s
->
frame_pts_inc
=
((
uint64_t
)
AV_RL32
(
&
scratch
[
0
]))
*
AV_RL16
(
&
scratch
[
4
]);
av_log
(
NULL
,
AV_LOG_TRACE
,
" %.2f frames/second (timer div = %d, subdiv = %d)
\n
"
,
1000000
.
0
/
s
->
frame_pts_inc
,
AV_RL32
(
&
scratch
[
0
]),
AV_RL16
(
&
scratch
[
4
]));
break
;
case
OPCODE_INIT_AUDIO_BUFFERS
:
...
...
libavformat/mov.c
View file @
ca1e5eea
...
...
@@ -427,9 +427,6 @@ static int mov_read_udta_string(MOVContext *c, AVIOContext *pb, MOVAtom atom)
av_dict_set
(
&
c
->
fc
->
metadata
,
key2
,
str
,
0
);
}
}
av_log
(
c
->
fc
,
AV_LOG_TRACE
,
"lang
\"
%3s
\"
"
,
language
);
av_log
(
c
->
fc
,
AV_LOG_TRACE
,
"tag
\"
%s
\"
value
\"
%s
\"
atom
\"
%.4s
\"
%d %"
PRId64
"
\n
"
,
key
,
str
,
(
char
*
)
&
atom
.
type
,
str_size_alloc
,
atom
.
size
);
av_freep
(
&
str
);
return
0
;
...
...
@@ -505,7 +502,6 @@ static int mov_read_dref(MOVContext *c, AVIOContext *pb, MOVAtom atom)
dref
->
type
=
avio_rl32
(
pb
);
avio_rb32
(
pb
);
// version + flags
av_log
(
c
->
fc
,
AV_LOG_TRACE
,
"type %.4s size %d
\n
"
,
(
char
*
)
&
dref
->
type
,
size
);
if
(
dref
->
type
==
MKTAG
(
'a'
,
'l'
,
'i'
,
's'
)
&&
size
>
150
)
{
/* macintosh alias record */
...
...
@@ -2010,7 +2006,6 @@ static int mov_read_stps(MOVContext *c, AVIOContext *pb, MOVAtom atom)
for
(
i
=
0
;
i
<
entries
&&
!
pb
->
eof_reached
;
i
++
)
{
sc
->
stps_data
[
i
]
=
avio_rb32
(
pb
);
//av_log(c->fc, AV_LOG_TRACE, "stps %d\n", sc->stps_data[i]);
}
sc
->
stps_count
=
i
;
...
...
@@ -2053,7 +2048,6 @@ static int mov_read_stss(MOVContext *c, AVIOContext *pb, MOVAtom atom)
for
(
i
=
0
;
i
<
entries
&&
!
pb
->
eof_reached
;
i
++
)
{
sc
->
keyframes
[
i
]
=
avio_rb32
(
pb
);
//av_log(c->fc, AV_LOG_TRACE, "keyframes[]=%d\n", sc->keyframes[i]);
}
sc
->
keyframe_count
=
i
;
...
...
libavformat/nsvdec.c
View file @
ca1e5eea
...
...
@@ -212,13 +212,6 @@ static const AVCodecTag nsv_codec_audio_tags[] = {
//static int nsv_load_index(AVFormatContext *s);
static
int
nsv_read_chunk
(
AVFormatContext
*
s
,
int
fill_header
);
#define print_tag(str, tag, size) \
av_log(NULL, AV_LOG_TRACE, "%s: tag=%c%c%c%c\n", \
str, tag & 0xff, \
(tag >> 8) & 0xff, \
(tag >> 16) & 0xff, \
(tag >> 24) & 0xff);
/* try to find something we recognize, and set the state accordingly */
static
int
nsv_resync
(
AVFormatContext
*
s
)
{
...
...
@@ -405,8 +398,6 @@ static int nsv_parse_NSVs_header(AVFormatContext *s)
nsv
->
avsync
=
avio_rl16
(
pb
);
nsv
->
framerate
=
framerate
;
print_tag
(
"NSV NSVs vtag"
,
vtag
,
0
);
print_tag
(
"NSV NSVs atag"
,
atag
,
0
);
av_log
(
s
,
AV_LOG_TRACE
,
"NSV NSVs vsize %dx%d
\n
"
,
vwidth
,
vheight
);
/* XXX change to ap != NULL ? */
...
...
@@ -558,12 +549,6 @@ null_chunk_retry:
uint32_t
av_unused
auxtag
;
auxsize
=
avio_rl16
(
pb
);
auxtag
=
avio_rl32
(
pb
);
av_log
(
s
,
AV_LOG_TRACE
,
"NSV aux data: '%c%c%c%c', %d bytes
\n
"
,
(
auxtag
&
0x0ff
),
((
auxtag
>>
8
)
&
0x0ff
),
((
auxtag
>>
16
)
&
0x0ff
),
((
auxtag
>>
24
)
&
0x0ff
),
auxsize
);
avio_skip
(
pb
,
auxsize
);
vsize
-=
auxsize
+
sizeof
(
uint16_t
)
+
sizeof
(
uint32_t
);
/* that's becoming brain-dead */
}
...
...
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