lavf: make av_interleave_packet() return meaningful error codes