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
0e635f3e
Commit
0e635f3e
authored
Mar 31, 2011
by
Matthew Hoops
Committed by
Anton Khirnov
Apr 01, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sierravmd: fix Indeo3 videos
Signed-off-by:
Anton Khirnov
<
anton@khirnov.net
>
parent
41327cca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sierravmd.c
libavformat/sierravmd.c
+2
-2
No files found.
libavformat/sierravmd.c
View file @
0e635f3e
...
...
@@ -99,7 +99,7 @@ static int vmd_read_header(AVFormatContext *s,
if
(
avio_read
(
pb
,
vmd
->
vmd_header
,
VMD_HEADER_SIZE
)
!=
VMD_HEADER_SIZE
)
return
AVERROR
(
EIO
);
if
(
vmd
->
vmd_header
[
16
]
==
'i'
&&
vmd
->
vmd_header
[
17
]
==
'v'
&&
vmd
->
vmd_header
[
18
]
==
'3'
)
if
(
vmd
->
vmd_header
[
24
]
==
'i'
&&
vmd
->
vmd_header
[
25
]
==
'v'
&&
vmd
->
vmd_header
[
26
]
==
'3'
)
vmd
->
is_indeo3
=
1
;
else
vmd
->
is_indeo3
=
0
;
...
...
@@ -249,7 +249,7 @@ static int vmd_read_packet(AVFormatContext *s,
return
AVERROR
(
ENOMEM
);
pkt
->
pos
=
avio_tell
(
pb
);
memcpy
(
pkt
->
data
,
frame
->
frame_record
,
BYTES_PER_FRAME_RECORD
);
if
(
vmd
->
is_indeo3
)
if
(
vmd
->
is_indeo3
&&
frame
->
frame_record
[
0
]
==
0x02
)
ret
=
avio_read
(
pb
,
pkt
->
data
,
frame
->
frame_size
);
else
ret
=
avio_read
(
pb
,
pkt
->
data
+
BYTES_PER_FRAME_RECORD
,
...
...
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