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
01770bfd
Commit
01770bfd
authored
Sep 20, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/snowenc: Do not write into const AVFrame
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
55b803e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
snowenc.c
libavcodec/snowenc.c
+6
-3
No files found.
libavcodec/snowenc.c
View file @
01770bfd
...
...
@@ -1557,7 +1557,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
{
SnowContext
*
s
=
avctx
->
priv_data
;
RangeCoder
*
const
c
=
&
s
->
c
;
AVFrame
*
pic
=
pict
;
AVFrame
*
pic
;
const
int
width
=
s
->
avctx
->
width
;
const
int
height
=
s
->
avctx
->
height
;
int
level
,
orientation
,
plane_index
,
i
,
y
,
ret
;
...
...
@@ -1584,6 +1584,9 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
}
emms_c
();
pic
=
s
->
input_picture
;
pic
->
pict_type
=
pict
->
pict_type
;
pic
->
quality
=
pict
->
quality
;
s
->
m
.
picture_number
=
avctx
->
frame_number
;
if
(
avctx
->
flags
&
AV_CODEC_FLAG_PASS2
){
...
...
@@ -1844,8 +1847,8 @@ redo_frame:
ff_snow_release_buffer
(
avctx
);
s
->
current_picture
->
coded_picture_number
=
avctx
->
frame_number
;
s
->
current_picture
->
pict_type
=
pic
t
->
pict_type
;
s
->
current_picture
->
quality
=
pic
t
->
quality
;
s
->
current_picture
->
pict_type
=
pic
->
pict_type
;
s
->
current_picture
->
quality
=
pic
->
quality
;
s
->
m
.
frame_bits
=
8
*
(
s
->
c
.
bytestream
-
s
->
c
.
bytestream_start
);
s
->
m
.
p_tex_bits
=
s
->
m
.
frame_bits
-
s
->
m
.
misc_bits
-
s
->
m
.
mv_bits
;
s
->
m
.
current_picture
.
f
->
display_picture_number
=
...
...
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