mpeg4: improve error checking while decoding packets.
authorWind Yuan <feng.yuan@intel.com>
Fri, 30 Mar 2012 07:04:40 +0000 (03:04 -0400)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 30 Mar 2012 15:23:38 +0000 (17:23 +0200)
commitb33dd6930081c7ab8d0f1ceee48bc89b21105cdd
treeefe9f825ed06a60521ecb11579dae16d251f691b
parent75538bbc9bf116113248e39511ad261e7d651774
mpeg4: improve error checking while decoding packets.

decode_picture() could return an error when an MPEG-4 profile is not
supported for example. In this case, the underlying VA context is not
allocated and no other proper action can be taken. Likewise on exit
from decode_slice().

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
gst-libs/gst/vaapi/gstvaapidecoder_mpeg4.c