git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
535638b
)
Pass field order flag to libx264
author
Marco Gittler
<marco@gitma.de>
Wed, 26 Jan 2011 02:07:34 +0000
(18:07 -0800)
committer
Jason Garrett-Glaser
<jason@x264.com>
Wed, 26 Jan 2011 02:07:34 +0000
(18:07 -0800)
Signed-off-by: Jason Garrett-Glaser <jason@x264.com>
libavcodec/libx264.c
patch
|
blob
|
history
diff --git
a/libavcodec/libx264.c
b/libavcodec/libx264.c
index
0dad5cd
..
85ef38c
100644
(file)
--- a/
libavcodec/libx264.c
+++ b/
libavcodec/libx264.c
@@
-105,6
+105,10
@@
static int X264_frame(AVCodecContext *ctx, uint8_t *buf,
frame->pict_type == FF_P_TYPE ? X264_TYPE_P :
frame->pict_type == FF_B_TYPE ? X264_TYPE_B :
X264_TYPE_AUTO;
+ if (x4->params.b_tff != frame->top_field_first) {
+ x4->params.b_tff = frame->top_field_first;
+ x264_encoder_reconfig(x4->enc, &x4->params);
+ }
}
do {