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
a45bdbc4
Commit
a45bdbc4
authored
Nov 18, 2008
by
Reynaldo H. Verdejo Pinochet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trivial, Cosmetics
Originally committed as revision 15871 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
fc5d0db5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
mtv.c
libavformat/mtv.c
+16
-16
No files found.
libavformat/mtv.c
View file @
a45bdbc4
...
@@ -86,11 +86,11 @@ static int mtv_read_header(AVFormatContext *s, AVFormatParameters *ap)
...
@@ -86,11 +86,11 @@ static int mtv_read_header(AVFormatContext *s, AVFormatParameters *ap)
mtv
->
img_segment_size
;
mtv
->
img_segment_size
;
mtv
->
video_fps
=
(
mtv
->
audio_br
/
4
)
/
audio_subsegments
;
mtv
->
video_fps
=
(
mtv
->
audio_br
/
4
)
/
audio_subsegments
;
/
* FIXME Add sanity check here */
/
/ FIXME Add sanity check here
/
* all systems go! init decoders */
/
/ all systems go! init decoders
/
* video - raw rgb565 */
/
/ video - raw rgb565
st
=
av_new_stream
(
s
,
VIDEO_SID
);
st
=
av_new_stream
(
s
,
VIDEO_SID
);
if
(
!
st
)
if
(
!
st
)
...
@@ -105,7 +105,7 @@ static int mtv_read_header(AVFormatContext *s, AVFormatParameters *ap)
...
@@ -105,7 +105,7 @@ static int mtv_read_header(AVFormatContext *s, AVFormatParameters *ap)
st
->
codec
->
bits_per_coded_sample
=
mtv
->
img_bpp
;
st
->
codec
->
bits_per_coded_sample
=
mtv
->
img_bpp
;
st
->
codec
->
sample_rate
=
mtv
->
video_fps
;
st
->
codec
->
sample_rate
=
mtv
->
video_fps
;
/
* audio - mp3 */
/
/ audio - mp3
st
=
av_new_stream
(
s
,
AUDIO_SID
);
st
=
av_new_stream
(
s
,
AUDIO_SID
);
if
(
!
st
)
if
(
!
st
)
...
@@ -117,7 +117,7 @@ static int mtv_read_header(AVFormatContext *s, AVFormatParameters *ap)
...
@@ -117,7 +117,7 @@ static int mtv_read_header(AVFormatContext *s, AVFormatParameters *ap)
st
->
codec
->
bit_rate
=
mtv
->
audio_br
;
st
->
codec
->
bit_rate
=
mtv
->
audio_br
;
st
->
need_parsing
=
AVSTREAM_PARSE_FULL
;
st
->
need_parsing
=
AVSTREAM_PARSE_FULL
;
/
* Jump over header */
/
/ Jump over header
if
(
url_fseek
(
pb
,
MTV_HEADER_SIZE
,
SEEK_SET
)
!=
MTV_HEADER_SIZE
)
if
(
url_fseek
(
pb
,
MTV_HEADER_SIZE
,
SEEK_SET
)
!=
MTV_HEADER_SIZE
)
return
AVERROR
(
EIO
);
return
AVERROR
(
EIO
);
...
...
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