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
1e742ea3
Commit
1e742ea3
authored
Feb 19, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
targaenc: don't modify input frame.
Set the pict_type/key_frame properties on the coded picture.
parent
32277700
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
targaenc.c
libavcodec/targaenc.c
+1
-3
No files found.
libavcodec/targaenc.c
View file @
1e742ea3
...
...
@@ -91,9 +91,6 @@ static int targa_encode_frame(AVCodecContext *avctx,
return
AVERROR
(
EINVAL
);
}
p
->
pict_type
=
AV_PICTURE_TYPE_I
;
p
->
key_frame
=
1
;
/* zero out the header and only set applicable fields */
memset
(
outbuf
,
0
,
12
);
AV_WL16
(
outbuf
+
12
,
avctx
->
width
);
...
...
@@ -154,6 +151,7 @@ static av_cold int targa_encode_init(AVCodecContext *avctx)
avcodec_get_frame_defaults
(
&
s
->
picture
);
s
->
picture
.
key_frame
=
1
;
s
->
picture
.
pict_type
=
AV_PICTURE_TYPE_I
;
avctx
->
coded_frame
=
&
s
->
picture
;
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