Skip to content
Snippets Groups Projects
Commit b09f5482 authored by Marco Gittler's avatar Marco Gittler Committed by Jason Garrett-Glaser
Browse files

Pass field order flag to libx264

parent 535638b5
No related branches found
No related tags found
No related merge requests found
...@@ -105,6 +105,10 @@ static int X264_frame(AVCodecContext *ctx, uint8_t *buf, ...@@ -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_P_TYPE ? X264_TYPE_P :
frame->pict_type == FF_B_TYPE ? X264_TYPE_B : frame->pict_type == FF_B_TYPE ? X264_TYPE_B :
X264_TYPE_AUTO; 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 { do {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment