Mercurial > libavcodec.hg
comparison dnxhddec.c @ 6212:0b967440e270 libavcodec
fix field order export
author | bcoudurier |
---|---|
date | Thu, 31 Jan 2008 14:23:48 +0000 |
parents | 8b6fe123be88 |
children | bfb9d5c104a1 |
comparison
equal
deleted
inserted
replaced
6211:ed359f380aa7 | 6212:0b967440e270 |
---|---|
97 return -1; | 97 return -1; |
98 } | 98 } |
99 if (buf[5] & 2) { /* interlaced */ | 99 if (buf[5] & 2) { /* interlaced */ |
100 ctx->cur_field = buf[5] & 1; | 100 ctx->cur_field = buf[5] & 1; |
101 ctx->picture.interlaced_frame = 1; | 101 ctx->picture.interlaced_frame = 1; |
102 ctx->picture.top_field_first = first_field && ctx->cur_field == 1; | 102 ctx->picture.top_field_first = first_field ^ ctx->cur_field; |
103 av_log(ctx->avctx, AV_LOG_DEBUG, "interlaced %d, cur field %d\n", buf[5] & 3, ctx->cur_field); | 103 av_log(ctx->avctx, AV_LOG_DEBUG, "interlaced %d, cur field %d\n", buf[5] & 3, ctx->cur_field); |
104 } | 104 } |
105 | 105 |
106 ctx->height = AV_RB16(buf + 0x18); | 106 ctx->height = AV_RB16(buf + 0x18); |
107 ctx->width = AV_RB16(buf + 0x1a); | 107 ctx->width = AV_RB16(buf + 0x1a); |