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
2ff9ff5b
Commit
2ff9ff5b
authored
Jul 28, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dont segfault without -strict -1
Originally committed as revision 3356 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
3ea1ce21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
snow.c
libavcodec/snow.c
+6
-6
No files found.
libavcodec/snow.c
View file @
2ff9ff5b
...
...
@@ -2149,6 +2149,12 @@ static int encode_init(AVCodecContext *avctx)
int
i
;
int
level
,
orientation
,
plane_index
;
if
(
avctx
->
strict_std_compliance
>=
0
){
av_log
(
avctx
,
AV_LOG_ERROR
,
"this codec is under development, files encoded with it wont be decodeable with future versions!!!
\n
"
"use vstrict=-1 to use it anyway
\n
"
);
return
-
1
;
}
common_init
(
avctx
);
s
->
version
=
0
;
...
...
@@ -2217,12 +2223,6 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size,
int
used_count
=
0
;
int
log2_threshold
,
level
,
orientation
,
plane_index
,
i
;
if
(
avctx
->
strict_std_compliance
>=
0
){
av_log
(
avctx
,
AV_LOG_ERROR
,
"this codec is under development, files encoded with it wont be decodeable with future versions!!!
\n
"
"use vstrict=-1 to use it anyway
\n
"
);
return
-
1
;
}
ff_init_cabac_encoder
(
c
,
buf
,
buf_size
);
ff_init_cabac_states
(
c
,
ff_h264_lps_range
,
ff_h264_mps_state
,
ff_h264_lps_state
,
64
);
...
...
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