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
16db3585
Commit
16db3585
authored
Feb 01, 2008
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
const
Originally committed as revision 11741 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
92ddaf26
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
rv10.c
libavcodec/rv10.c
+4
-4
No files found.
libavcodec/rv10.c
View file @
16db3585
...
...
@@ -597,7 +597,7 @@ static int rv10_decode_end(AVCodecContext *avctx)
}
static
int
rv10_decode_packet
(
AVCodecContext
*
avctx
,
uint8_t
*
buf
,
int
buf_size
)
const
uint8_t
*
buf
,
int
buf_size
)
{
MpegEncContext
*
s
=
avctx
->
priv_data
;
int
mb_count
,
mb_pos
,
left
,
start_mb_x
;
...
...
@@ -711,7 +711,7 @@ static int rv10_decode_packet(AVCodecContext *avctx,
return
buf_size
;
}
static
int
get_slice_offset
(
AVCodecContext
*
avctx
,
uint8_t
*
buf
,
int
n
)
static
int
get_slice_offset
(
AVCodecContext
*
avctx
,
const
uint8_t
*
buf
,
int
n
)
{
if
(
avctx
->
slice_count
)
return
avctx
->
slice_offset
[
n
];
else
return
AV_RL32
(
buf
+
n
*
8
);
...
...
@@ -719,13 +719,13 @@ static int get_slice_offset(AVCodecContext *avctx, uint8_t *buf, int n)
static
int
rv10_decode_frame
(
AVCodecContext
*
avctx
,
void
*
data
,
int
*
data_size
,
uint8_t
*
buf
,
int
buf_size
)
const
uint8_t
*
buf
,
int
buf_size
)
{
MpegEncContext
*
s
=
avctx
->
priv_data
;
int
i
;
AVFrame
*
pict
=
data
;
int
slice_count
;
uint8_t
*
slices_hdr
=
NULL
;
const
uint8_t
*
slices_hdr
=
NULL
;
#ifdef DEBUG
av_log
(
avctx
,
AV_LOG_DEBUG
,
"*****frame %d size=%d
\n
"
,
avctx
->
frame_number
,
buf_size
);
...
...
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