comparison dxva2_h264.c @ 11735:9434d9083b94 libavcodec

Reindent after last commit on dxva2 h264 AVHWAccel.
author fenrir
date Fri, 14 May 2010 23:09:08 +0000
parents f85c4e46272e
children
comparison
equal deleted inserted replaced
11734:f85c4e46272e 11735:9434d9083b94
55 s->picture_structure == PICT_BOTTOM_FIELD); 55 s->picture_structure == PICT_BOTTOM_FIELD);
56 /* Configure the set of references */ 56 /* Configure the set of references */
57 pp->UsedForReferenceFlags = 0; 57 pp->UsedForReferenceFlags = 0;
58 pp->NonExistingFrameFlags = 0; 58 pp->NonExistingFrameFlags = 0;
59 for (i = 0, j = 0; i < FF_ARRAY_ELEMS(pp->RefFrameList); i++) { 59 for (i = 0, j = 0; i < FF_ARRAY_ELEMS(pp->RefFrameList); i++) {
60 const Picture *r; 60 const Picture *r;
61 if (j < h->short_ref_count) { 61 if (j < h->short_ref_count) {
62 r = h->short_ref[j++]; 62 r = h->short_ref[j++];
63 } else { 63 } else {
64 r = NULL; 64 r = NULL;
65 while (!r && j < h->short_ref_count + 16) 65 while (!r && j < h->short_ref_count + 16)
66 r = h->long_ref[j++ - h->short_ref_count]; 66 r = h->long_ref[j++ - h->short_ref_count];
67 } 67 }
68 if (r) { 68 if (r) {
69 fill_picture_entry(&pp->RefFrameList[i], 69 fill_picture_entry(&pp->RefFrameList[i],
70 ff_dxva2_get_surface_index(ctx, r), 70 ff_dxva2_get_surface_index(ctx, r),
71 r->long_ref != 0); 71 r->long_ref != 0);
72 72