git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6aa2db7
)
Use LOW_DELAY only with MPEG1/2. Closes #864
author
Christophe Mutricy
<xtophe@videolan.org>
Fri, 24 Nov 2006 19:50:37 +0000
(19:50 +0000)
committer
Christophe Mutricy
<xtophe@videolan.org>
Fri, 24 Nov 2006 19:50:37 +0000
(19:50 +0000)
modules/codec/ffmpeg/encoder.c
patch
|
blob
|
history
diff --git
a/modules/codec/ffmpeg/encoder.c
b/modules/codec/ffmpeg/encoder.c
index
1e16ab7
..
6554cb9
100644
(file)
--- a/
modules/codec/ffmpeg/encoder.c
+++ b/
modules/codec/ffmpeg/encoder.c
@@
-407,7
+407,9
@@
int E_(OpenEncoder)( vlc_object_t *p_this )
p_context->max_b_frames =
__MAX( __MIN( p_sys->i_b_frames, FF_MAX_B_FRAMES ), 0 );
p_context->b_frame_strategy = 0;
- if( !p_context->max_b_frames )
+ if( !p_context->max_b_frames &&
+ ( p_enc->fmt_out.i_codec == VLC_FOURCC('m', 'p', '2', 'v') ||
+ p_enc->fmt_out.i_codec == VLC_FOURCC('m', 'p', '1', 'v') ) )
p_context->flags |= CODEC_FLAG_LOW_DELAY;
av_reduce( &i_aspect_num, &i_aspect_den,