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
37226285
Commit
37226285
authored
Nov 09, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libschroedingerenc: use the AVFrame API properly.
parent
97168b20
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
libschroedingerenc.c
libavcodec/libschroedingerenc.c
+5
-4
No files found.
libavcodec/libschroedingerenc.c
View file @
37226285
...
...
@@ -49,9 +49,6 @@ typedef struct SchroEncoderParams {
/** Schroedinger frame format */
SchroFrameFormat
frame_format
;
/** frame being encoded */
AVFrame
picture
;
/** frame size */
int
frame_size
;
...
...
@@ -164,7 +161,9 @@ static av_cold int libschroedinger_encode_init(AVCodecContext *avctx)
avctx
->
width
,
avctx
->
height
);
avctx
->
coded_frame
=
&
p_schro_params
->
picture
;
avctx
->
coded_frame
=
av_frame_alloc
();
if
(
!
avctx
->
coded_frame
)
return
AVERROR
(
ENOMEM
);
if
(
!
avctx
->
gop_size
)
{
schro_encoder_setting_set_double
(
p_schro_params
->
encoder
,
...
...
@@ -432,6 +431,8 @@ static int libschroedinger_encode_close(AVCodecContext *avctx)
/* Free the video format structure. */
av_freep
(
&
p_schro_params
->
format
);
av_frame_free
(
&
avctx
->
coded_frame
);
return
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