1119 |
|
|
1120 |
// place this frame back on the encoding-queue (head) |
// place this frame back on the encoding-queue (head) |
1121 |
// we will deal with it next time |
// we will deal with it next time |
1122 |
|
dec_frame_num(pEnc); |
1123 |
|
pEnc->iFrameNum--; |
1124 |
|
|
1125 |
pEnc->queue_head = (pEnc->queue_head + (pEnc->mbParam.max_bframes+1) - 1) % (pEnc->mbParam.max_bframes+1); |
pEnc->queue_head = (pEnc->queue_head + (pEnc->mbParam.max_bframes+1) - 1) % (pEnc->mbParam.max_bframes+1); |
1126 |
pEnc->queue_size++; |
pEnc->queue_size++; |
1127 |
image_swap(&pEnc->current->image, &pEnc->queue[pEnc->queue_head].image); |
image_swap(&pEnc->current->image, &pEnc->queue[pEnc->queue_head].image); |
1128 |
|
|
|
dec_frame_num(pEnc); |
|
|
pEnc->iFrameNum--; |
|
|
|
|
1129 |
// grab the last frame from the bframe-queue |
// grab the last frame from the bframe-queue |
1130 |
|
|
1131 |
pEnc->bframenum_tail--; |
pEnc->bframenum_tail--; |