Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
ffmpeg
Commits
273977d8
Commit
273977d8
authored
Jan 01, 2004
by
Michael Niedermayer
Browse files
rate limit tips and checks
Originally committed as revision 2643 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
55bbad6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
libavcodec/mpegvideo.c
libavcodec/mpegvideo.c
+10
-1
No files found.
libavcodec/mpegvideo.c
View file @
273977d8
...
...
@@ -731,12 +731,21 @@ int MPV_encode_init(AVCodecContext *avctx)
s
->
loop_filter
=
!!
(
s
->
flags
&
CODEC_FLAG_LOOP_FILTER
);
s
->
alternate_scan
=
!!
(
s
->
flags
&
CODEC_FLAG_ALT_SCAN
);
if
(
avctx
->
rc_max_rate
&&
!
avctx
->
rc_buffer_size
){
av_log
(
avctx
,
AV_LOG_ERROR
,
"a vbv buffer size is needed, for encoding with a maximum bitrate
\n
"
);
return
-
1
;
}
if
(
avctx
->
rc_min_rate
&&
avctx
->
rc_max_rate
!=
avctx
->
rc_min_rate
){
av_log
(
avctx
,
AV_LOG_INFO
,
"Warning min_rate > 0 but min_rate != max_rate isnt recommanded!
\n
"
);
}
if
((
s
->
flags
&
CODEC_FLAG_4MV
)
&&
s
->
codec_id
!=
CODEC_ID_MPEG4
&&
s
->
codec_id
!=
CODEC_ID_H263
&&
s
->
codec_id
!=
CODEC_ID_H263P
){
av_log
(
avctx
,
AV_LOG_ERROR
,
"4MV not supported by codec
\n
"
);
return
-
1
;
}
if
(
s
->
obmc
&&
s
->
avctx
->
mb_decision
!=
FF_MB_DECISION_SIMPLE
){
av_log
(
avctx
,
AV_LOG_ERROR
,
"OBMC is only supported with simple mb decission
\n
"
);
return
-
1
;
...
...
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