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:
Sreerenj Balachandran 2014-05-07 00:08:33 +03:00 committed by Gwenole Beauchesne
parent 7bdf3fa177
commit f0924ba0d1

View file

@ -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. */