libx264: do not set pic quality if no frame is output