avcodec: on audio encode, sync timestamps more often from input

Ref #9022
avcodec: map AV_NOPTS_VALUE and VLC_TS_INVALID
httplive: small simplification