Fix the segfault while inserting packed slice header
Fix the segfault while inserting packed slice header

Signed-off-by: Sreerenj Balachandran <8526e100bdc7a12d85af109c9f42b86756e50e67@intel.com>
Reviewed-by: Zhao, Yakui <21bae65ecea50a19bd9d0fef489914760189fd5b@intel.com>
(cherry picked from commit 7c2273f1334d7d45e248d128e17200b7e8beffd1)

01org/iotg-lin-gfx-va-driver,gbeauchesne/libva-intel-driver,gbeauchesne/libva-intel-driver,uartie/vaapi-intel-driver,chenxianqin/vaapi-intel-driver,uartie/vaapi-intel-driver,gbeauchesne/libva-intel-driver,gbeauchesne/libva-intel-driver,chenxianqin/vaapi-intel-driver,uartie/vaapi-intel-driver,gbeauchesne/libva-intel-driver,01org/iotg-lin-gfx-va-driver,uartie/vaapi-intel-driver,chenxianqin/vaapi-intel-driver,chenxianqin/vaapi-intel-driver,uartie/vaapi-intel-driver,01org/iotg-lin-gfx-va-driver,01org/iotg-lin-gfx-va-driver,chenxianqin/vaapi-intel-driver,01org/iotg-lin-gfx-va-driver