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
60b6dbe7
Commit
60b6dbe7
authored
Feb 01, 2008
by
Aurelien Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
const
Originally committed as revision 11800 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
9f5bd895
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
vc1.c
libavcodec/vc1.c
+7
-5
No files found.
libavcodec/vc1.c
View file @
60b6dbe7
...
...
@@ -3776,7 +3776,7 @@ static void vc1_decode_blocks(VC1Context *v)
/** Find VC-1 marker in buffer
* @return position where next marker starts or end of buffer if no marker found
*/
static
av_always_inline
uint8_t
*
find_next_marker
(
uint8_t
*
src
,
uint8_t
*
end
)
static
av_always_inline
const
uint8_t
*
find_next_marker
(
const
uint8_t
*
src
,
const
uint8_t
*
end
)
{
uint32_t
mrk
=
0xFFFFFFFF
;
...
...
@@ -3789,7 +3789,7 @@ static av_always_inline uint8_t* find_next_marker(uint8_t *src, uint8_t *end)
return
end
;
}
static
av_always_inline
int
vc1_unescape_buffer
(
uint8_t
*
src
,
int
size
,
uint8_t
*
dst
)
static
av_always_inline
int
vc1_unescape_buffer
(
const
uint8_t
*
src
,
int
size
,
uint8_t
*
dst
)
{
int
dsize
=
0
,
i
;
...
...
@@ -3862,8 +3862,10 @@ static int vc1_decode_init(AVCodecContext *avctx)
av_log
(
avctx
,
AV_LOG_INFO
,
"Read %i bits in overflow
\n
"
,
-
count
);
}
}
else
{
// VC1/WVC1
uint8_t
*
start
=
avctx
->
extradata
,
*
end
=
avctx
->
extradata
+
avctx
->
extradata_size
;
uint8_t
*
next
;
int
size
,
buf2_size
;
const
uint8_t
*
start
=
avctx
->
extradata
;
uint8_t
*
end
=
avctx
->
extradata
+
avctx
->
extradata_size
;
const
uint8_t
*
next
;
int
size
,
buf2_size
;
uint8_t
*
buf2
=
NULL
;
int
seq_inited
=
0
,
ep_inited
=
0
;
...
...
@@ -3998,7 +4000,7 @@ static int vc1_decode_frame(AVCodecContext *avctx,
}
}
}
else
if
(
v
->
interlace
&&
((
buf
[
0
]
&
0xC0
)
==
0xC0
)){
/* WVC1 interlaced stores both fields divided by marker */
uint8_t
*
divider
;
const
uint8_t
*
divider
;
divider
=
find_next_marker
(
buf
,
buf
+
buf_size
);
if
((
divider
==
(
buf
+
buf_size
))
||
AV_RB32
(
divider
)
!=
VC1_CODE_FIELD
){
...
...
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