examples/vaapi_encode: Remove redundancy check when free context.
authorJun Zhao <jun.zhao@intel.com>
Thu, 11 Jan 2018 05:21:58 +0000 (13:21 +0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 12 Jan 2018 11:31:55 +0000 (12:31 +0100)
commit9b955eece610f7f8b4aa2096b4e0ca738e21edc4
tree55da0a5b039e73ad0c997e748df56cf5730faa7e
parent6e80079a2840ee407c5d126030eb1066bcbfdfc5
examples/vaapi_encode: Remove redundancy check when free context.

avcodec_free_context have handle NULL pointer case, so caller doesn't
need to check the NULL before call this function.

Signe-off-by: Jun Zhao <jun.zhao@intel.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
doc/examples/vaapi_encode.c