• Diego Biurrun's avatar
    vaapi: do not assert on value read from input bitstream · f20418c3
    Diego Biurrun authored
    User-provided data should never trigger an assert; return error instead.
    Also fix an instance of get_bits where get_bits_long should have been used.
    
    This eliminates the following warning:
    libavcodec/vaapi_mpeg2.c:112:14: warning: variable 'start_code' set but not used
    f20418c3
vaapi_mpeg2.c 6.41 KB