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
2ef241c0
Commit
2ef241c0
authored
May 23, 2011
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oggdec: use av_dlog()
Simplify.
parent
6b4c0be5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
15 deletions
+5
-15
oggdec.c
libavformat/oggdec.c
+5
-15
No files found.
libavformat/oggdec.c
View file @
2ef241c0
...
...
@@ -317,9 +317,7 @@ static int ogg_packet(AVFormatContext *s, int *str, int *dstart, int *dsize,
int
complete
=
0
;
int
segp
=
0
,
psize
=
0
;
#if 0
av_log (s, AV_LOG_DEBUG, "ogg_packet: curidx=%i\n", ogg->curidx);
#endif
av_dlog
(
s
,
"ogg_packet: curidx=%i
\n
"
,
ogg
->
curidx
);
do
{
idx
=
ogg
->
curidx
;
...
...
@@ -332,11 +330,8 @@ static int ogg_packet(AVFormatContext *s, int *str, int *dstart, int *dsize,
os
=
ogg
->
streams
+
idx
;
#if 0
av_log (s, AV_LOG_DEBUG,
"ogg_packet: idx=%d pstart=%d psize=%d segp=%d nsegs=%d\n",
av_dlog
(
s
,
"ogg_packet: idx=%d pstart=%d psize=%d segp=%d nsegs=%d
\n
"
,
idx
,
os
->
pstart
,
os
->
psize
,
os
->
segp
,
os
->
nsegs
);
#endif
if
(
!
os
->
codec
){
if
(
os
->
header
<
0
){
...
...
@@ -369,11 +364,8 @@ static int ogg_packet(AVFormatContext *s, int *str, int *dstart, int *dsize,
}
}
while
(
!
complete
);
#if 0
av_log (s, AV_LOG_DEBUG,
"ogg_packet: idx %i, frame size %i, start %i\n",
av_dlog
(
s
,
"ogg_packet: idx %i, frame size %i, start %i
\n
"
,
idx
,
os
->
psize
,
os
->
pstart
);
#endif
if
(
os
->
granule
==
-
1
)
av_log
(
s
,
AV_LOG_WARNING
,
"Page at %"
PRId64
" is missing granule
\n
"
,
os
->
page_pos
);
...
...
@@ -452,9 +444,7 @@ static int ogg_get_headers(AVFormatContext *s)
return
ret
;
}
while
(
!
ogg
->
headers
);
#if 0
av_log (s, AV_LOG_DEBUG, "found headers\n");
#endif
av_dlog
(
s
,
"found headers
\n
"
);
return
0
;
}
...
...
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