lavf: make compute_pkt_fields2() return meaningful error values