Skip to content

Commit be7f41f

Browse files
trettermchehab
authored andcommitted
media: allegro: increase offset in CAPTURE buffer
The HEVC Non-VCL NAL units require more space than the H.264 Non-VCL NAL units. Therefore, the driver needs to reserve more space in front of the actual coded data that is written by the hardware codec. Increase the offset that shall be used by the hardware codec from 64 bytes to 128 bytes which is as arbitrary as before. Signed-off-by: Michael Tretter <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 4132dcb commit be7f41f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/media/platform/allegro-dvt/allegro-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
* because it needs to write SPS/PPS NAL units. The encoder writes the actual
9191
* frame data after the offset.
9292
*/
93-
#define ENCODER_STREAM_OFFSET SZ_64
93+
#define ENCODER_STREAM_OFFSET SZ_128
9494

9595
#define SIZE_MACROBLOCK 16
9696

0 commit comments

Comments
 (0)