avformat/gxf: Use 64bit for res to avoid overflow