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
64472fcf
Commit
64472fcf
authored
Mar 10, 2007
by
Benjamin Larsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify, use avctx->frame_number.
Originally committed as revision 8309 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
6b74787b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
flashsvenc.c
libavcodec/flashsvenc.c
+1
-5
No files found.
libavcodec/flashsvenc.c
View file @
64472fcf
...
...
@@ -68,7 +68,6 @@ typedef struct FlashSVContext {
AVCodecContext
*
avctx
;
uint8_t
*
previous_frame
;
AVFrame
frame
;
int
first_frame
;
int
image_width
,
image_height
;
int
block_width
,
block_height
;
uint8_t
*
tmpblock
;
...
...
@@ -113,8 +112,6 @@ static int flashsv_encode_init(AVCodecContext *avctx)
return
-
1
;
}
s
->
first_frame
=
1
;
// Needed if zlib unused or init aborted before deflateInit
memset
(
&
(
s
->
zstream
),
0
,
sizeof
(
z_stream
));
/*
...
...
@@ -241,14 +238,13 @@ static int flashsv_encode_frame(AVCodecContext *avctx, uint8_t *buf, int buf_siz
*
p
=
*
pict
;
if
(
s
->
first_frame
)
{
if
(
avctx
->
frame_number
==
0
)
{
s
->
previous_frame
=
av_mallocz
(
p
->
linesize
[
0
]
*
s
->
image_height
);
if
(
!
s
->
previous_frame
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Memory allocation failed.
\n
"
);
return
-
1
;
}
I_frame
=
1
;
s
->
first_frame
=
0
;
}
#if 0
...
...
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