mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
avuienc: Use field_order to determine if a stream is interlaced.
This commit is contained in:
parent
7a0d00dc79
commit
fb6c6b15d7
@ -43,7 +43,9 @@ static int avui_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
|||||||
const AVFrame *pic, int *got_packet)
|
const AVFrame *pic, int *got_packet)
|
||||||
{
|
{
|
||||||
uint8_t *dst, *src = pic->data[0];
|
uint8_t *dst, *src = pic->data[0];
|
||||||
int i, j, skip, ret, size, interlaced = pic->interlaced_frame;
|
int i, j, skip, ret, size, interlaced;
|
||||||
|
|
||||||
|
interlaced = avctx->field_order > AV_FIELD_PROGRESSIVE;
|
||||||
|
|
||||||
if (avctx->height == 486) {
|
if (avctx->height == 486) {
|
||||||
skip = 10;
|
skip = 10;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user