Revision ce5e49b0 libavcodec/dxva2_mpeg2.c
libavcodec/dxva2_mpeg2.c | ||
---|---|---|
44 | 44 |
memset(pp, 0, sizeof(*pp)); |
45 | 45 |
pp->wDecodedPictureIndex = ff_dxva2_get_surface_index(ctx, current_picture); |
46 | 46 |
pp->wDeblockedPictureIndex = 0; |
47 |
if (s->pict_type != FF_I_TYPE)
|
|
47 |
if (s->pict_type != AV_PICTURE_TYPE_I)
|
|
48 | 48 |
pp->wForwardRefPictureIndex = ff_dxva2_get_surface_index(ctx, &s->last_picture); |
49 | 49 |
else |
50 | 50 |
pp->wForwardRefPictureIndex = 0xffff; |
51 |
if (s->pict_type == FF_B_TYPE)
|
|
51 |
if (s->pict_type == AV_PICTURE_TYPE_B)
|
|
52 | 52 |
pp->wBackwardRefPictureIndex = ff_dxva2_get_surface_index(ctx, &s->next_picture); |
53 | 53 |
else |
54 | 54 |
pp->wBackwardRefPictureIndex = 0xffff; |
... | ... | |
61 | 61 |
pp->bBPPminus1 = 7; |
62 | 62 |
pp->bPicStructure = s->picture_structure; |
63 | 63 |
pp->bSecondField = is_field && !s->first_field; |
64 |
pp->bPicIntra = s->pict_type == FF_I_TYPE;
|
|
65 |
pp->bPicBackwardPrediction = s->pict_type == FF_B_TYPE;
|
|
64 |
pp->bPicIntra = s->pict_type == AV_PICTURE_TYPE_I;
|
|
65 |
pp->bPicBackwardPrediction = s->pict_type == AV_PICTURE_TYPE_B;
|
|
66 | 66 |
pp->bBidirectionalAveragingMode = 0; |
67 | 67 |
pp->bMVprecisionAndChromaRelation= 0; /* FIXME */ |
68 | 68 |
pp->bChromaFormat = s->chroma_format; |
Also available in: Unified diff