mpegvideo: do not update last_non_b_pict_type in update_thread_context()
It is used for encoding only.
This commit is contained in:
@@ -762,10 +762,6 @@ do {\
|
|||||||
s->last_pict_type = s1->pict_type;
|
s->last_pict_type = s1->pict_type;
|
||||||
if (s1->current_picture_ptr)
|
if (s1->current_picture_ptr)
|
||||||
s->last_lambda_for[s1->pict_type] = s1->current_picture_ptr->f.quality;
|
s->last_lambda_for[s1->pict_type] = s1->current_picture_ptr->f.quality;
|
||||||
|
|
||||||
if (s1->pict_type != AV_PICTURE_TYPE_B) {
|
|
||||||
s->last_non_b_pict_type = s1->pict_type;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user