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
7100376f
Commit
7100376f
authored
Dec 07, 2008
by
Reynaldo H. Verdejo Pinochet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
COSMETICS
Originally committed as revision 16028 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
c687643c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
17 deletions
+15
-17
mtv.c
libavformat/mtv.c
+15
-17
No files found.
libavformat/mtv.c
View file @
7100376f
...
...
@@ -36,24 +36,23 @@
typedef
struct
MTVDemuxContext
{
unsigned
int
file_size
;
///< filesize, not always right
unsigned
int
segments
;
///< number of 512 byte segments
unsigned
int
audio_identifier
;
///< 'MP3' on all files I have seen
unsigned
int
audio_br
;
///< bitrate of audio chanel (mp3)
unsigned
int
img_colorfmt
;
///< frame colorfmt rgb 565/555
unsigned
int
img_bpp
;
///< frame bits per pixel
unsigned
int
img_width
;
//
unsigned
int
img_height
;
//
unsigned
int
img_segment_size
;
///< size of image segment
unsigned
int
video_fps
;
//
unsigned
int
full_segment_size
;
unsigned
int
file_size
;
///< filesize, not always right
unsigned
int
segments
;
///< number of 512 byte segments
unsigned
int
audio_identifier
;
///< 'MP3' on all files I have seen
unsigned
int
audio_br
;
///< bitrate of audio chanel (mp3)
unsigned
int
img_colorfmt
;
///< frame colorfmt rgb 565/555
unsigned
int
img_bpp
;
///< frame bits per pixel
unsigned
int
img_width
;
//
unsigned
int
img_height
;
//
unsigned
int
img_segment_size
;
///< size of image segment
unsigned
int
video_fps
;
//
unsigned
int
full_segment_size
;
}
MTVDemuxContext
;
static
int
mtv_probe
(
AVProbeData
*
p
)
{
/* Magic is 'AMV' */
if
(
*
(
p
->
buf
)
!=
'A'
||
*
(
p
->
buf
+
1
)
!=
'M'
||
*
(
p
->
buf
+
2
)
!=
'V'
)
return
0
;
...
...
@@ -62,11 +61,10 @@ static int mtv_probe(AVProbeData *p)
static
int
mtv_read_header
(
AVFormatContext
*
s
,
AVFormatParameters
*
ap
)
{
MTVDemuxContext
*
mtv
=
s
->
priv_data
;
ByteIOContext
*
pb
=
s
->
pb
;
AVStream
*
st
;
unsigned
int
audio_subsegments
;
MTVDemuxContext
*
mtv
=
s
->
priv_data
;
ByteIOContext
*
pb
=
s
->
pb
;
AVStream
*
st
;
unsigned
int
audio_subsegments
;
url_fskip
(
pb
,
3
);
mtv
->
file_size
=
get_le32
(
pb
);
...
...
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