mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 08:17:01 +00:00
encoder: h264: fix MVC pipeline hang while encoding with B-frames.
Since we are encoding each view independently from each other, we need a higher number of pre-allocated surfaces to be used as the reconstructed frames. For Stereo High profile encoding, this means to effectively double the number of frames to be stored in the DPB.
This commit is contained in:
parent
7bdf3fa177
commit
f0924ba0d1
1 changed files with 1 additions and 1 deletions
|
@ -2321,7 +2321,7 @@ set_context_info (GstVaapiEncoder * base_encoder)
|
||||||
|
|
||||||
base_encoder->num_ref_frames =
|
base_encoder->num_ref_frames =
|
||||||
((encoder->num_bframes ? 2 : 1) + DEFAULT_SURFACES_COUNT)
|
((encoder->num_bframes ? 2 : 1) + DEFAULT_SURFACES_COUNT)
|
||||||
* encoder->view_idx;
|
* encoder->num_views;
|
||||||
|
|
||||||
/* Only YUV 4:2:0 formats are supported for now. This means that we
|
/* Only YUV 4:2:0 formats are supported for now. This means that we
|
||||||
have a limit of 3200 bits per macroblock. */
|
have a limit of 3200 bits per macroblock. */
|
||||||
|
|
Loading…
Reference in a new issue