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
155aa417
Commit
155aa417
authored
Jan 31, 2004
by
Mike Melanson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
watch those hard tabs
Originally committed as revision 2733 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
df72754d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
19 deletions
+19
-19
msrle.c
libavcodec/msrle.c
+5
-5
msvideo1.c
libavcodec/msvideo1.c
+5
-5
rpza.c
libavcodec/rpza.c
+4
-4
smc.c
libavcodec/smc.c
+5
-5
No files found.
libavcodec/msrle.c
View file @
155aa417
...
...
@@ -110,8 +110,8 @@ static void msrle_decode_pal4(MsrleContext *s)
FETCH_NEXT_STREAM_BYTE
();
s
->
frame
.
data
[
0
][
row_ptr
+
pixel_ptr
]
=
stream_byte
>>
4
;
pixel_ptr
++
;
if
(
i
+
1
==
rle_code
&&
odd_pixel
)
break
;
if
(
i
+
1
==
rle_code
&&
odd_pixel
)
break
;
if
(
pixel_ptr
>=
s
->
avctx
->
width
)
break
;
s
->
frame
.
data
[
0
][
row_ptr
+
pixel_ptr
]
=
stream_byte
&
0x0F
;
...
...
@@ -254,9 +254,9 @@ static int msrle_decode_frame(AVCodecContext *avctx,
{
MsrleContext
*
s
=
(
MsrleContext
*
)
avctx
->
priv_data
;
/* no supplementary picture */
if
(
buf_size
==
0
)
return
0
;
/* no supplementary picture */
if
(
buf_size
==
0
)
return
0
;
s
->
buf
=
buf
;
s
->
size
=
buf_size
;
...
...
libavcodec/msvideo1.c
View file @
155aa417
...
...
@@ -303,15 +303,15 @@ static int msvideo1_decode_frame(AVCodecContext *avctx,
{
Msvideo1Context
*
s
=
(
Msvideo1Context
*
)
avctx
->
priv_data
;
/* no supplementary picture */
if
(
buf_size
==
0
)
return
0
;
/* no supplementary picture */
if
(
buf_size
==
0
)
return
0
;
s
->
buf
=
buf
;
s
->
size
=
buf_size
;
s
->
frame
.
reference
=
1
;
s
->
frame
.
buffer_hints
=
FF_BUFFER_HINTS_VALID
|
FF_BUFFER_HINTS_PRESERVE
|
FF_BUFFER_HINTS_REUSABLE
;
s
->
frame
.
reference
=
1
;
s
->
frame
.
buffer_hints
=
FF_BUFFER_HINTS_VALID
|
FF_BUFFER_HINTS_PRESERVE
|
FF_BUFFER_HINTS_REUSABLE
;
if
(
avctx
->
reget_buffer
(
avctx
,
&
s
->
frame
))
{
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"reget_buffer() failed
\n
"
);
return
-
1
;
...
...
libavcodec/rpza.c
View file @
155aa417
...
...
@@ -254,15 +254,15 @@ static int rpza_decode_frame(AVCodecContext *avctx,
{
RpzaContext
*
s
=
(
RpzaContext
*
)
avctx
->
priv_data
;
/* no supplementary picture */
if
(
buf_size
==
0
)
return
0
;
/* no supplementary picture */
if
(
buf_size
==
0
)
return
0
;
s
->
buf
=
buf
;
s
->
size
=
buf_size
;
s
->
frame
.
reference
=
1
;
s
->
frame
.
buffer_hints
=
FF_BUFFER_HINTS_VALID
|
FF_BUFFER_HINTS_PRESERVE
|
FF_BUFFER_HINTS_REUSABLE
;
s
->
frame
.
buffer_hints
=
FF_BUFFER_HINTS_VALID
|
FF_BUFFER_HINTS_PRESERVE
|
FF_BUFFER_HINTS_REUSABLE
;
if
(
avctx
->
reget_buffer
(
avctx
,
&
s
->
frame
))
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"reget_buffer() failed
\n
"
);
return
-
1
;
...
...
libavcodec/smc.c
View file @
155aa417
...
...
@@ -453,16 +453,16 @@ static int smc_decode_frame(AVCodecContext *avctx,
{
SmcContext
*
s
=
(
SmcContext
*
)
avctx
->
priv_data
;
/* no supplementary picture */
if
(
buf_size
==
0
)
return
0
;
/* no supplementary picture */
if
(
buf_size
==
0
)
return
0
;
s
->
buf
=
buf
;
s
->
size
=
buf_size
;
s
->
frame
.
reference
=
1
;
s
->
frame
.
buffer_hints
=
FF_BUFFER_HINTS_VALID
|
FF_BUFFER_HINTS_PRESERVE
|
FF_BUFFER_HINTS_REUSABLE
|
FF_BUFFER_HINTS_READABLE
;
s
->
frame
.
buffer_hints
=
FF_BUFFER_HINTS_VALID
|
FF_BUFFER_HINTS_PRESERVE
|
FF_BUFFER_HINTS_REUSABLE
|
FF_BUFFER_HINTS_READABLE
;
if
(
avctx
->
reget_buffer
(
avctx
,
&
s
->
frame
))
{
printf
(
"reget_buffer() failed
\n
"
);
return
-
1
;
...
...
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