]> granicus.if.org Git - libvpx/commit
vp9_cx_iface,encoder_encode: only calc ts when img!=NULL
authorJames Zern <jzern@google.com>
Mon, 8 Aug 2022 18:28:27 +0000 (11:28 -0700)
committerJames Zern <jzern@google.com>
Mon, 8 Aug 2022 18:28:27 +0000 (11:28 -0700)
commit4355a392e6b2dec619dde616028b5a91c8917c0c
tree7c96ace8477736ecf47a7ec6eae36094cd5e593b
parentc9f049fd9164e0b5b950bdb8ac80186787b5b64c
vp9_cx_iface,encoder_encode: only calc ts when img!=NULL

avoid calculating the end timestamp when performing a flush to prevent
an implicit conversion warning when applying a non-zero offset to a 0
pts used in that case:
vp9/vp9_cx_iface.c:1361:50: runtime error: implicit conversion from type
'vpx_codec_pts_t' (aka 'long') of value -15 (64-bit, signed) to type
'unsigned long' changed the value to 18446744073709551601 (64-bit,
unsigned)

Bug: b/229626362
Change-Id: I68ba19b7d6de35cc185707dfb6b43406b7165035
vp9/vp9_cx_iface.c