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
d0b76b98
Commit
d0b76b98
authored
Jun 26, 2008
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove debugging trash.
Originally committed as revision 13999 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
7669935a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
26 deletions
+0
-26
psxstr.c
libavformat/psxstr.c
+0
-26
No files found.
libavformat/psxstr.c
View file @
d0b76b98
...
...
@@ -31,8 +31,6 @@
#include "avformat.h"
//#define PRINTSTUFF
#define RIFF_TAG MKTAG('R', 'I', 'F', 'F')
#define CDXA_TAG MKTAG('C', 'D', 'X', 'A')
...
...
@@ -91,19 +89,6 @@ static int str_probe(AVProbeData *p)
return
50
;
}
#if 0
static void dump(unsigned char *buf,size_t len)
{
int i;
for(i=0;i<len;i++) {
if ((i&15)==0) av_log(NULL, AV_LOG_DEBUG, "%04x ",i);
av_log(NULL, AV_LOG_DEBUG, "%02x ",buf[i]);
if ((i&15)==15) av_log(NULL, AV_LOG_DEBUG, "\n");
}
av_log(NULL, AV_LOG_DEBUG, "\n");
}
#endif
static
int
str_read_header
(
AVFormatContext
*
s
,
AVFormatParameters
*
ap
)
{
...
...
@@ -135,8 +120,6 @@ static int str_read_header(AVFormatContext *s,
if
(
get_buffer
(
pb
,
sector
,
RAW_CD_SECTOR_SIZE
)
!=
RAW_CD_SECTOR_SIZE
)
return
AVERROR
(
EIO
);
//printf("%02x %02x %02x %02x\n",sector[0x10],sector[0x11],sector[0x12],sector[0x13]);
channel
=
sector
[
0x11
];
if
(
channel
>=
32
)
return
AVERROR_INVALIDDATA
;
...
...
@@ -240,7 +223,6 @@ static int str_read_packet(AVFormatContext *s,
return
AVERROR_INVALIDDATA
;
}
// printf("%d %d %d\n",current_sector,sector_count,frame_size);
/* if this is the first sector of the frame, allocate a pkt */
pkt
=
&
str
->
channels
[
channel
].
tmp_pkt
;
...
...
@@ -272,10 +254,6 @@ static int str_read_packet(AVFormatContext *s,
break
;
case
CDXA_TYPE_AUDIO
:
#ifdef PRINTSTUFF
printf
(
" dropping audio sector
\n
"
);
#endif
#if 1
pkt
=
ret_pkt
;
if
(
av_new_packet
(
pkt
,
2304
))
return
AVERROR
(
EIO
);
...
...
@@ -284,13 +262,9 @@ printf (" dropping audio sector\n");
pkt
->
stream_index
=
str
->
channels
[
channel
].
audio_stream_index
;
return
0
;
#endif
break
;
default:
/* drop the sector and move on */
#ifdef PRINTSTUFF
printf
(
" dropping other sector
\n
"
);
#endif
break
;
}
...
...
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